summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-12-07 23:12:25 +0000
committerschwarze <schwarze@openbsd.org>2016-12-07 23:12:25 +0000
commitd1974fee05c363b6f946e84ea8bf113bfccf9d0a (patch)
tree82b2098d5f261104af204e1b82e8c12782a16497
parentenable commented parts of the test, they seem to work now (diff)
downloadwireguard-openbsd-d1974fee05c363b6f946e84ea8bf113bfccf9d0a.tar.xz
wireguard-openbsd-d1974fee05c363b6f946e84ea8bf113bfccf9d0a.zip
comment out non-working parts of the test with .ig rather than \",
this is not supposed to test whitespace at the end of comments; noticed by bluhm@ who sent a different patch
-rw-r--r--regress/usr.bin/mandoc/roff/args/man.in41
-rw-r--r--regress/usr.bin/mandoc/roff/args/man.out_ascii3
-rw-r--r--regress/usr.bin/mandoc/roff/args/man.out_lint6
3 files changed, 32 insertions, 18 deletions
diff --git a/regress/usr.bin/mandoc/roff/args/man.in b/regress/usr.bin/mandoc/roff/args/man.in
index cad7cd0bda9..36ce992f1c9 100644
--- a/regress/usr.bin/mandoc/roff/args/man.in
+++ b/regress/usr.bin/mandoc/roff/args/man.in
@@ -90,25 +90,38 @@ triple eol blank:
.IB "one one" "two two"
text
.br
-.\"trailing blanks in arguments:
-.\"IB "one " "two "
-.\"text
-.\"br
+.\" Disabled for now because mandoc man(7) seems to
+.\" mishandle trailing blanks in arguments,
+.\" but that really isn't urgent to fix.
+.ig
+trailing blanks in arguments:
+.IB "one " "two "
+text
+.br
+..
unterminated quotes:
.IB "one
+text
+.br
.IB one "two
text
.br
-.\"single trailing blank in unterminated quotes:
-.\"IB "one
-.\"IB one "two
-.\"text
-.\"br
-.\"double trailing blank in unterminated quotes:
-.\"IB "one
-.\"IB one "two
-.\"text
-.\"br
+.ig
+single trailing blank in unterminated quotes:
+.IB "one
+text
+.br
+.IB one "two
+text
+.br
+double trailing blank in unterminated quotes:
+.IB "one
+text
+.br
+.IB one "two
+text
+.br
+..
tab after macro:
.IB one two
text
diff --git a/regress/usr.bin/mandoc/roff/args/man.out_ascii b/regress/usr.bin/mandoc/roff/args/man.out_ascii
index 3ad61f96496..b936b45f9db 100644
--- a/regress/usr.bin/mandoc/roff/args/man.out_ascii
+++ b/regress/usr.bin/mandoc/roff/args/man.out_ascii
@@ -27,7 +27,8 @@ DDEESSCCRRIIPPTTIIOONN
single eol blank: _o_n_e _o_n_ettwwoo ttwwoo text
double eol blank: _o_n_e _o_n_ettwwoo ttwwoo text
triple eol blank: _o_n_e _o_n_ettwwoo ttwwoo text
- unterminated quotes: _o_n_e _o_n_ettwwoo text
+ unterminated quotes: _o_n_e text
+ _o_n_ettwwoo text
tab after macro: _o_n_ettwwoo text
escape sequence after macro: _o_n_ettwwoo text
backslash at eol: _o_n_ettwwoo
diff --git a/regress/usr.bin/mandoc/roff/args/man.out_lint b/regress/usr.bin/mandoc/roff/args/man.out_lint
index b82b4164952..68b4ec9f047 100644
--- a/regress/usr.bin/mandoc/roff/args/man.out_lint
+++ b/regress/usr.bin/mandoc/roff/args/man.out_lint
@@ -4,6 +4,6 @@ mandoc: man.in:42:15: WARNING: whitespace at end of input line
mandoc: man.in:82:25: WARNING: whitespace at end of input line
mandoc: man.in:86:26: WARNING: whitespace at end of input line
mandoc: man.in:90:27: WARNING: whitespace at end of input line
-mandoc: man.in:98:5: WARNING: unterminated quoted argument
-mandoc: man.in:99:9: WARNING: unterminated quoted argument
-mandoc: man.in:117:1: ERROR: escaped character not allowed in a name: IB\(
+mandoc: man.in:103:5: WARNING: unterminated quoted argument
+mandoc: man.in:106:9: WARNING: unterminated quoted argument
+mandoc: man.in:130:1: ERROR: escaped character not allowed in a name: IB\(