diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-04 16:11:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-04 16:11:43 +0000 |
commit | 2c6982d062b7ce1ae253db8021bc097ca2d00311 (patch) | |
tree | 2919649c07a9aa9c36789b93bd731e844e44b77a /regress/usr.bin/mandoc/mdoc/Bk | |
parent | 9144ba6ca272f3983a9b8843ee75d03b753e020b (diff) |
Clean up messages regarding excess arguments:
* Downgrade ".Bf -emphasis Em" from FATAL to WARNING.
* Mention the macros, the arguments, and the fallbacks.
* Hierarchical naming.
Also fix the handling of excess .It head arguments in -Tman.
Diffstat (limited to 'regress/usr.bin/mandoc/mdoc/Bk')
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bk/Makefile | 3 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bk/badarg.in | 2 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Bk/badarg.out_lint | 6 |
3 files changed, 9 insertions, 2 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Bk/Makefile b/regress/usr.bin/mandoc/mdoc/Bk/Makefile index ac178847d18..a13f69639a2 100644 --- a/regress/usr.bin/mandoc/mdoc/Bk/Makefile +++ b/regress/usr.bin/mandoc/mdoc/Bk/Makefile @@ -1,6 +1,7 @@ -# $OpenBSD: Makefile,v 1.5 2013/12/24 16:01:15 schwarze Exp $ +# $OpenBSD: Makefile,v 1.6 2014/07/04 16:11:42 schwarze Exp $ REGRESS_TARGETS = break inputlines synopsis badarg lines +LINT_TARGETS = badarg SKIP_TMAN ?= badarg diff --git a/regress/usr.bin/mandoc/mdoc/Bk/badarg.in b/regress/usr.bin/mandoc/mdoc/Bk/badarg.in index 567d4dda871..1f331e56519 100644 --- a/regress/usr.bin/mandoc/mdoc/Bk/badarg.in +++ b/regress/usr.bin/mandoc/mdoc/Bk/badarg.in @@ -21,7 +21,7 @@ .Ar x x x x x x .Bk -lines .Op o Ar a -.Ek +.Ek tail argument .Pp .Nm .Ar x x x x x x x x diff --git a/regress/usr.bin/mandoc/mdoc/Bk/badarg.out_lint b/regress/usr.bin/mandoc/mdoc/Bk/badarg.out_lint new file mode 100644 index 00000000000..3ced9f1087d --- /dev/null +++ b/regress/usr.bin/mandoc/mdoc/Bk/badarg.out_lint @@ -0,0 +1,6 @@ +mandoc: badarg.in:13:2: WARNING: argument count wrong: want 0 children (have 1) +mandoc: badarg.in:22:2: WARNING: argument count wrong: want 0 children (have 1) +mandoc: badarg.in:24:2: ERROR: skipping all arguments: Ek tail argument +mandoc: badarg.in:31:2: WARNING: argument count wrong: want 0 children (have 1) +mandoc: badarg.in:49:2: WARNING: argument count wrong: want 0 children (have 1) +mandoc: badarg.in:54:2: WARNING: argument count wrong: want more than 0 children (have 0) |