summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-07-03 21:23:09 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-07-03 21:23:09 +0000
commit76e7ee2ebea7905a2ec9b4235f57b00b0522f61a (patch)
tree98fb31f051857a9b161596dadf1aac4eed0fa763 /regress/usr.bin
parent0a3891d795831a44f7e086e8ef0936bf7e165c23 (diff)
MANDOCERR_NOARGS reported three completely unrelated classes of problems.
Split the roff(7) parts out of it and report the request names for these cases.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/roff/cond/Makefile3
-rw-r--r--regress/usr.bin/mandoc/roff/cond/if.out_lint2
-rw-r--r--regress/usr.bin/mandoc/roff/de/Makefile3
-rw-r--r--regress/usr.bin/mandoc/roff/de/escname.in1
-rw-r--r--regress/usr.bin/mandoc/roff/de/escname.out_lint7
5 files changed, 14 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/roff/cond/Makefile b/regress/usr.bin/mandoc/roff/cond/Makefile
index 11511142584..fd88fc0988e 100644
--- a/regress/usr.bin/mandoc/roff/cond/Makefile
+++ b/regress/usr.bin/mandoc/roff/cond/Makefile
@@ -1,5 +1,6 @@
-# $OpenBSD: Makefile,v 1.5 2014/03/08 04:43:39 schwarze Exp $
+# $OpenBSD: Makefile,v 1.6 2014/07/03 21:23:08 schwarze Exp $
REGRESS_TARGETS = if ie close numeric strcmp before-Dd
+LINT_TARGETS = if
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/roff/cond/if.out_lint b/regress/usr.bin/mandoc/roff/cond/if.out_lint
new file mode 100644
index 00000000000..bb8e2d3ad48
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/cond/if.out_lint
@@ -0,0 +1,2 @@
+mandoc: if.in:14:1: WARNING: conditional request controls empty scope: if
+mandoc: if.in:16:1: WARNING: conditional request controls empty scope: if
diff --git a/regress/usr.bin/mandoc/roff/de/Makefile b/regress/usr.bin/mandoc/roff/de/Makefile
index 390c004849c..18947237065 100644
--- a/regress/usr.bin/mandoc/roff/de/Makefile
+++ b/regress/usr.bin/mandoc/roff/de/Makefile
@@ -1,6 +1,7 @@
-# $OpenBSD: Makefile,v 1.3 2014/06/29 23:23:16 schwarze Exp $
+# $OpenBSD: Makefile,v 1.4 2014/07/03 21:23:08 schwarze Exp $
REGRESS_TARGETS = escname TH Dd
+LINT_TARGETS = escname
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/roff/de/escname.in b/regress/usr.bin/mandoc/roff/de/escname.in
index db5b0506254..a75a2679551 100644
--- a/regress/usr.bin/mandoc/roff/de/escname.in
+++ b/regress/usr.bin/mandoc/roff/de/escname.in
@@ -39,4 +39,5 @@ macro seperated from argument by an escape sequence:
..
.witharg\(enargument
.Pp
+.de\e
final text
diff --git a/regress/usr.bin/mandoc/roff/de/escname.out_lint b/regress/usr.bin/mandoc/roff/de/escname.out_lint
new file mode 100644
index 00000000000..2eecd35d7e0
--- /dev/null
+++ b/regress/usr.bin/mandoc/roff/de/escname.out_lint
@@ -0,0 +1,7 @@
+mandoc: escname.in:21:1: ERROR: escaped character not allowed in a name
+mandoc: escname.in:31:19: ERROR: escaped character not allowed in a name
+mandoc: escname.in:32:2: ERROR: skipping unknown macro: .first
+mandoc: escname.in:34:2: ERROR: skipping unknown macro: .first\\second
+mandoc: escname.in:40:1: ERROR: escaped character not allowed in a name
+mandoc: escname.in:42:1: ERROR: escaped character not allowed in a name
+mandoc: escname.in:42:1: WARNING: skipping empty request: de