summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-06-20 22:58:42 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-06-20 22:58:42 +0000
commita9951d5f8c07fa722ecf157dd9f89c89e1bb8782 (patch)
treebdace0afdd4c85227bffdd1ef65af16ad0dae108 /regress/usr.bin
parent31a5545196ad14cf695ca6a7e6fa7910075b16da (diff)
As suggested by jmc@, only include line and column numbers into messages
when they are meaningful, to avoid confusing stuff like this: $ mandoc /dev/null mandoc: /dev/null:0:1: FATAL: not a manual Instead, just say: mandoc: /dev/null: FATAL: not a manual Another example this applies to is documents having a prologue, but lacking a body. Do not throw a FATAL error for these; instead, issue a warning and show the empty document, in the man(7) case with the same amount of blank lines as groff does. Also downgrade mdoc(7) documents having content before the first .Sh from FATAL to WARNING.
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/man/TH/emptydate.out_lint2
-rw-r--r--regress/usr.bin/mandoc/man/TH/noTH.out_lint4
-rw-r--r--regress/usr.bin/mandoc/man/TH/twoargs.out_lint4
-rw-r--r--regress/usr.bin/mandoc/mdoc/Dt/Makefile13
4 files changed, 13 insertions, 10 deletions
diff --git a/regress/usr.bin/mandoc/man/TH/emptydate.out_lint b/regress/usr.bin/mandoc/man/TH/emptydate.out_lint
index 864faa64e9f..1d656a980b1 100644
--- a/regress/usr.bin/mandoc/man/TH/emptydate.out_lint
+++ b/regress/usr.bin/mandoc/man/TH/emptydate.out_lint
@@ -1 +1 @@
-emptydate.in:1:20: WARNING: date missing, using today's date
+mandoc: emptydate.in:1:20: WARNING: date missing, using today's date
diff --git a/regress/usr.bin/mandoc/man/TH/noTH.out_lint b/regress/usr.bin/mandoc/man/TH/noTH.out_lint
index d0d2efe10bf..f618330d217 100644
--- a/regress/usr.bin/mandoc/man/TH/noTH.out_lint
+++ b/regress/usr.bin/mandoc/man/TH/noTH.out_lint
@@ -1,2 +1,2 @@
-noTH.in:0:1: WARNING: no TH macro in document
-noTH.in:0:1: WARNING: date missing, using today's date
+mandoc: noTH.in: WARNING: no TH macro in document
+mandoc: noTH.in: WARNING: date missing, using today's date
diff --git a/regress/usr.bin/mandoc/man/TH/twoargs.out_lint b/regress/usr.bin/mandoc/man/TH/twoargs.out_lint
index dd3f8712374..b849d8b8d53 100644
--- a/regress/usr.bin/mandoc/man/TH/twoargs.out_lint
+++ b/regress/usr.bin/mandoc/man/TH/twoargs.out_lint
@@ -1,2 +1,2 @@
-twoargs.in:1:2: ERROR: argument count wrong: line arguments >= 2 (have 1)
-twoargs.in:1:2: WARNING: date missing, using today's date
+mandoc: twoargs.in:1:2: ERROR: argument count wrong: line arguments >= 2 (have 1)
+mandoc: twoargs.in:1:2: WARNING: date missing, using today's date
diff --git a/regress/usr.bin/mandoc/mdoc/Dt/Makefile b/regress/usr.bin/mandoc/mdoc/Dt/Makefile
index 5bdcef4d304..fb7c3110190 100644
--- a/regress/usr.bin/mandoc/mdoc/Dt/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Dt/Makefile
@@ -1,8 +1,11 @@
-# $OpenBSD: Makefile,v 1.1 2014/06/20 18:32:51 schwarze Exp $
+# $OpenBSD: Makefile,v 1.2 2014/06/20 22:58:41 schwarze Exp $
-REGRESS_TARGETS = case badsec badarch nodate baddate noos order dupe lateos
-LINT_TARGETS = case badsec badarch nodate baddate noos order dupe lateos
-SKIP_GROFF = badsec badarch nodate baddate noos
-SKIP_ASCII = badsec badarch nodate baddate noos
+REGRESS_TARGETS = case badsec badarch nodate baddate
+REGRESS_TARGETS += noos order dupe nobody lateos befSh
+LINT_TARGETS = case badsec badarch nodate baddate
+LINT_TARGETS += noos order dupe nobody lateos befSh
+
+SKIP_GROFF = badsec badarch nodate baddate noos nobody befSh
+SKIP_ASCII = badsec badarch nodate baddate noos befSh
.include <bsd.regress.mk>