diff options
Diffstat (limited to 'regress/roff')
-rw-r--r-- | regress/roff/ft/Makefile | 6 | ||||
-rw-r--r-- | regress/roff/ft/badargs-mdoc.in | 18 | ||||
-rw-r--r-- | regress/roff/ft/badargs-mdoc.out_ascii | 9 | ||||
-rw-r--r-- | regress/roff/ft/badargs-mdoc.out_lint | 2 |
4 files changed, 33 insertions, 2 deletions
diff --git a/regress/roff/ft/Makefile b/regress/roff/ft/Makefile index f57fe72b..5d2accbb 100644 --- a/regress/roff/ft/Makefile +++ b/regress/roff/ft/Makefile @@ -1,6 +1,8 @@ # $OpenBSD: Makefile,v 1.1 2014/07/05 12:33:54 schwarze Exp $ -REGRESS_TARGETS = badargs -LINT_TARGETS = badargs +REGRESS_TARGETS = badargs badargs-mdoc +LINT_TARGETS = badargs badargs-mdoc + +SKIP_TMAN = badargs .include <bsd.regress.mk> diff --git a/regress/roff/ft/badargs-mdoc.in b/regress/roff/ft/badargs-mdoc.in new file mode 100644 index 00000000..06f463b5 --- /dev/null +++ b/regress/roff/ft/badargs-mdoc.in @@ -0,0 +1,18 @@ +.Dd May 5, 2017 +.Dt FT-BADARGS-MDOC 1 +.Os OpenBSD +.Sh NAME +.Nm ft-badargs-mdoc +.Nd font request with bad arguments +.Sh DESCRIPTION +default font +.ft B +bold +.ft foo +still bold +.ft I bogus +italic +.ft P +back to bold +.ft +back to italic diff --git a/regress/roff/ft/badargs-mdoc.out_ascii b/regress/roff/ft/badargs-mdoc.out_ascii new file mode 100644 index 00000000..bd4eaa09 --- /dev/null +++ b/regress/roff/ft/badargs-mdoc.out_ascii @@ -0,0 +1,9 @@ +FT-BADARGS-MDOC(1) General Commands Manual FT-BADARGS-MDOC(1) + +NNAAMMEE + fftt--bbaaddaarrggss--mmddoocc - font request with bad arguments + +DDEESSCCRRIIPPTTIIOONN + default font bboolldd ssttiillll bboolldd _i_t_a_l_i_c bbaacckk ttoo bboolldd _b_a_c_k _t_o _i_t_a_l_i_c + +OpenBSD May 5, 2017 OpenBSD diff --git a/regress/roff/ft/badargs-mdoc.out_lint b/regress/roff/ft/badargs-mdoc.out_lint new file mode 100644 index 00000000..d5f526e6 --- /dev/null +++ b/regress/roff/ft/badargs-mdoc.out_lint @@ -0,0 +1,2 @@ +mandoc: badargs-mdoc.in:13:7: ERROR: skipping excess arguments: ft ... bogus +mandoc: badargs-mdoc.in:11:2: WARNING: unknown font, skipping request: ft foo |