summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-09 18:15:52 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-09 18:15:52 +0000
commitc5e2636b64aad8663e74f358b2c12b4d9faed147 (patch)
treebcb32745e759de4c2de371bc1d1e62b525a05496 /regress/usr.bin
parent7494e6238e8938fd028be48a9b6db4633dd5f8d6 (diff)
check that lists lacking their end macro do not crash;
related to mdoc_macro.c rev. 1.59
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/Makefile6
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/unclosed.in12
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/unclosed.out_ascii11
3 files changed, 26 insertions, 3 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/Makefile b/regress/usr.bin/mandoc/mdoc/Bl/Makefile
index 87be6e171ec..2fa123639dc 100644
--- a/regress/usr.bin/mandoc/mdoc/Bl/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Bl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.6 2011/01/04 02:11:32 schwarze Exp $
+# $OpenBSD: Makefile,v 1.7 2011/01/09 18:15:51 schwarze Exp $
REGRESS_TARGETS=tag inset hang diag column extend nested
GROFF_TARGETS=tag inset diag column extend nested
@@ -6,8 +6,8 @@ GROFF_TARGETS=tag inset diag column extend nested
# mandoc still contains a compatibility hack with groff-1.15
# regarding hang list indentation.
-REGRESS_TARGETS+=multitype multitag empty
-GROFF_TARGETS+=multitype multitag
+REGRESS_TARGETS+=multitype multitag empty unclosed
+GROFF_TARGETS+=multitype multitag unclosed
# groff-1.20.1 mishandles empty lists,
# ruining indentation and sometimes cauisng empty lines.
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/unclosed.in b/regress/usr.bin/mandoc/mdoc/Bl/unclosed.in
new file mode 100644
index 00000000000..8f0e131c1ec
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/unclosed.in
@@ -0,0 +1,12 @@
+.Dd January 9, 2011
+.Dt BL-UNCLOSED 1
+.Os
+.Sh NAME
+.Nm Bl-unclosed
+.Nd list lacking an end macro
+.Sh DESCRIPTION
+.Bl -item
+.It
+item
+.Sh SEE ALSO
+.Xr mdoc 7
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/unclosed.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/unclosed.out_ascii
new file mode 100644
index 00000000000..baf1266bc56
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/unclosed.out_ascii
@@ -0,0 +1,11 @@
+BL-UNCLOSED(1) OpenBSD Reference Manual BL-UNCLOSED(1)
+
+NNAAMMEE
+ BBll--uunncclloosseedd - list lacking an end macro
+
+DDEESSCCRRIIPPTTIIOONN
+ item
+
+SSEEEE AALLSSOO
+ mdoc(7)
+