summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-02-06 09:38:23 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-02-06 09:38:23 +0000
commit1fad62fe1200ae495da3bc9849b7cba22c44ee99 (patch)
tree59421e7510c403fc79cd00bc3bd88e65584cde8c /regress/usr.bin/mandoc
parentf21819e8cde3e96e30bd3d33f7a39427a83440d1 (diff)
better diagnostics about excess arguments to .PD .ft .sp
Diffstat (limited to 'regress/usr.bin/mandoc')
-rw-r--r--regress/usr.bin/mandoc/man/PD/Makefile5
-rw-r--r--regress/usr.bin/mandoc/man/PD/args.out_lint1
-rw-r--r--regress/usr.bin/mandoc/roff/ft/badargs.in2
-rw-r--r--regress/usr.bin/mandoc/roff/ft/badargs.out_lint1
-rw-r--r--regress/usr.bin/mandoc/roff/sp/Makefile3
-rw-r--r--regress/usr.bin/mandoc/roff/sp/badargs-man.out_lint1
6 files changed, 9 insertions, 4 deletions
diff --git a/regress/usr.bin/mandoc/man/PD/Makefile b/regress/usr.bin/mandoc/man/PD/Makefile
index fddeafbf745..86e5d910552 100644
--- a/regress/usr.bin/mandoc/man/PD/Makefile
+++ b/regress/usr.bin/mandoc/man/PD/Makefile
@@ -1,5 +1,6 @@
-# $OpenBSD: Makefile,v 1.1 2012/11/18 00:23:56 schwarze Exp $
+# $OpenBSD: Makefile,v 1.2 2015/02/06 09:38:22 schwarze Exp $
-REGRESS_TARGETS = spacing args
+REGRESS_TARGETS = spacing args
+LINT_TARGETS = args
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/man/PD/args.out_lint b/regress/usr.bin/mandoc/man/PD/args.out_lint
new file mode 100644
index 00000000000..9e42b46e724
--- /dev/null
+++ b/regress/usr.bin/mandoc/man/PD/args.out_lint
@@ -0,0 +1 @@
+mandoc: args.in:26:7: ERROR: skipping excess arguments: PD ... zzz
diff --git a/regress/usr.bin/mandoc/roff/ft/badargs.in b/regress/usr.bin/mandoc/roff/ft/badargs.in
index a42557d418c..2cb01b20dd4 100644
--- a/regress/usr.bin/mandoc/roff/ft/badargs.in
+++ b/regress/usr.bin/mandoc/roff/ft/badargs.in
@@ -7,7 +7,7 @@ default font
bold
.ft foo
still bold
-.ft I
+.ft I bogus
italic
.ft P
back to bold
diff --git a/regress/usr.bin/mandoc/roff/ft/badargs.out_lint b/regress/usr.bin/mandoc/roff/ft/badargs.out_lint
index 7a71655a48d..34ca64dc3d9 100644
--- a/regress/usr.bin/mandoc/roff/ft/badargs.out_lint
+++ b/regress/usr.bin/mandoc/roff/ft/badargs.out_lint
@@ -1 +1,2 @@
mandoc: badargs.in:8:2: WARNING: unknown font, skipping request: ft foo
+mandoc: badargs.in:10:7: ERROR: skipping excess arguments: ft ... bogus
diff --git a/regress/usr.bin/mandoc/roff/sp/Makefile b/regress/usr.bin/mandoc/roff/sp/Makefile
index 9e853e0da69..7a09afb1cf7 100644
--- a/regress/usr.bin/mandoc/roff/sp/Makefile
+++ b/regress/usr.bin/mandoc/roff/sp/Makefile
@@ -1,5 +1,6 @@
-# $OpenBSD: Makefile,v 1.4 2014/12/23 06:16:21 schwarze Exp $
+# $OpenBSD: Makefile,v 1.5 2015/02/06 09:38:22 schwarze Exp $
REGRESS_TARGETS = badargs-man badargs-mdoc negative scaling-man scaling-mdoc
+LINT_TARGETS = badargs-man
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/roff/sp/badargs-man.out_lint b/regress/usr.bin/mandoc/roff/sp/badargs-man.out_lint
new file mode 100644
index 00000000000..d38502dd3cc
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/sp/badargs-man.out_lint
@@ -0,0 +1 @@
+mandoc: badargs-man.in:10:8: ERROR: skipping excess arguments: sp ... 2i