summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/break
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-11 20:22:35 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-11 20:22:35 +0000
commita81736faf5784c97e7a57a87da2da19e17539316 (patch)
tree9d62e9627dbc2569815737737ea32d2688d6949f /regress/mdoc/break
parent1c6b1bd072ddd94a39998c409fa8de8d1a614832 (diff)
downloadmandoc-a81736faf5784c97e7a57a87da2da19e17539316.tar.gz
new regression tests for mdoc_macro.c revs. 1.211-1.215
Diffstat (limited to 'regress/mdoc/break')
-rw-r--r--regress/mdoc/break/tail.in15
-rw-r--r--regress/mdoc/break/tail.out_ascii7
-rw-r--r--regress/mdoc/break/tail.out_lint1
3 files changed, 19 insertions, 4 deletions
diff --git a/regress/mdoc/break/tail.in b/regress/mdoc/break/tail.in
index ff250591..c4984bee 100644
--- a/regress/mdoc/break/tail.in
+++ b/regress/mdoc/break/tail.in
@@ -1,9 +1,9 @@
-.Dd April 5, 2015
+.Dd February 11, 2017
.Dt BREAK-TAIL 1
.Os OpenBSD
.Sh NAME
.Nm break-tail
-.Nd tail arguments on broken blocks
+.Nd tail arguments on or after broken blocks
.Sh DESCRIPTION
Broken by a partial explicit block:
.Ao ao
@@ -35,3 +35,14 @@ list body
.Pc tail
list body
.El
+.Pp
+After a broken block: closing child on closing macro,
+then opening child on closing macro:
+.\" Crashed before mdoc_macro.c OpenBSD rev. 1.169
+.Ao ao
+.Bo bo
+.Bro bro
+.Po po brc
+.Brc pc
+.Pc bc Bc ac
+.Ac Op op
diff --git a/regress/mdoc/break/tail.out_ascii b/regress/mdoc/break/tail.out_ascii
index 62675d29..3d1dd0ce 100644
--- a/regress/mdoc/break/tail.out_ascii
+++ b/regress/mdoc/break/tail.out_ascii
@@ -1,7 +1,7 @@
BREAK-TAIL(1) General Commands Manual BREAK-TAIL(1)
NNAAMMEE
- bbrreeaakk--ttaaiill - tail arguments on broken blocks
+ bbrreeaakk--ttaaiill - tail arguments on or after broken blocks
DDEESSCCRRIIPPTTIIOONN
Broken by a partial explicit block: <ao [bo ac> bc] tail <ao [bo ac> bc]
@@ -18,4 +18,7 @@ DDEESSCCRRIIPPTTIIOONN
it <ao ac> (po pc) tail
list body
-OpenBSD April 5, 2015 OpenBSD
+ After a broken block: closing child on closing macro, then opening child
+ on closing macro: <ao [bo {bro (po brc} pc) bc] ac> [op]
+
+OpenBSD February 11, 2017 OpenBSD
diff --git a/regress/mdoc/break/tail.out_lint b/regress/mdoc/break/tail.out_lint
index d6f1b900..d6449913 100644
--- a/regress/mdoc/break/tail.out_lint
+++ b/regress/mdoc/break/tail.out_lint
@@ -2,3 +2,4 @@ mandoc: tail.in:11:2: WARNING: blocks badly nested: Ao breaks Bo
mandoc: tail.in:15:2: WARNING: blocks badly nested: Ao breaks Bo
mandoc: tail.in:20:2: WARNING: blocks badly nested: Aq breaks Bo
mandoc: tail.in:22:2: WARNING: blocks badly nested: Aq breaks Bo
+mandoc: tail.in:46:2: WARNING: blocks badly nested: Bro breaks Po