source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: test infinite recursion in eqn(7) "define" statements
Date: Sat, 11 Mar 2017 11:04:48 -0500 (EST)	[thread overview]
Message-ID: <13101276192174176864.enqueue@fantadrom.bsd.lv> (raw)

Log Message:
-----------
test infinite recursion in eqn(7) "define" statements

Modified Files:
--------------
    mdocml/regress/eqn/define:
        Makefile

Added Files:
-----------
    mdocml/regress/eqn/define:
        infinite.in
        infinite.out_ascii
        infinite.out_lint

Revision Data
-------------
--- /dev/null
+++ regress/eqn/define/infinite.out_ascii
@@ -0,0 +1,15 @@
+DEFINE-INFINITE(1)          General Commands Manual         DEFINE-INFINITE(1)
+
+N\bNA\bAM\bME\bE
+     d\bde\bef\bfi\bin\bne\be-\b-i\bin\bnf\bfi\bin\bni\bit\bte\be - infinite recursion in define statements
+
+D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
+     alone: eol
+
+     leading position: eol
+
+     middle position: eol
+
+     trailing position: eol
+
+OpenBSD                         March 11, 2017                         OpenBSD
Index: Makefile
===================================================================
RCS file: /home/cvs/mdocml/mdocml/regress/eqn/define/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lregress/eqn/define/Makefile -Lregress/eqn/define/Makefile -u -p -r1.1 -r1.2
--- regress/eqn/define/Makefile
+++ regress/eqn/define/Makefile
@@ -1,6 +1,6 @@
 # $OpenBSD: Makefile,v 1.1 2015/01/28 21:10:28 schwarze Exp $
 
-REGRESS_TARGETS	 = invalid
-LINT_TARGETS	 = invalid
+REGRESS_TARGETS	 = invalid infinite
+LINT_TARGETS	 = invalid infinite
 
 .include <bsd.regress.mk>
--- /dev/null
+++ regress/eqn/define/infinite.in
@@ -0,0 +1,30 @@
+.Dd March 11, 2017
+.Dt DEFINE-INFINITE 1
+.Os OpenBSD
+.Sh NAME
+.Nm define-infinite
+.Nd infinite recursion in define statements
+.Sh DESCRIPTION
+alone:
+.EQ
+define key 'key' key
+.EN
+eol
+.Pp
+leading position:
+.EQ
+define key 'key suffix' key
+.EN
+eol
+.Pp
+middle position:
+.EQ
+define key 'prefix key suffix' key
+.EN
+eol
+.Pp
+trailing position:
+.EQ
+define key 'prefix key' key
+.EN
+eol
--- /dev/null
+++ regress/eqn/define/infinite.out_lint
@@ -0,0 +1,4 @@
+mandoc: infinite.in:9:1: ERROR: input stack limit exceeded, infinite loop?
+mandoc: infinite.in:15:1: ERROR: input stack limit exceeded, infinite loop?
+mandoc: infinite.in:21:1: ERROR: input stack limit exceeded, infinite loop?
+mandoc: infinite.in:27:1: ERROR: input stack limit exceeded, infinite loop?
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2017-03-11 16:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13101276192174176864.enqueue@fantadrom.bsd.lv \
    --to=schwarze@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).