summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-12-07 23:27:43 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-12-07 23:27:43 +0000
commit294b95b83f1f727fa2cb8cd354fd1c0218055390 (patch)
treeda1e6079b67bde5b3bd31391a625971160c24093 /regress/usr.bin
parentfec57e50bb3571ec51bf57892500d8ac19f200ca (diff)
test different kinds of the "WARNING: whitespace at end of input line";
bluhm@ noticed that this area can grow regressions
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/mandoc/char/space/Makefile6
-rw-r--r--regress/usr.bin/mandoc/char/space/trailing-mdoc.in11
-rw-r--r--regress/usr.bin/mandoc/char/space/trailing-mdoc.out_ascii9
-rw-r--r--regress/usr.bin/mandoc/char/space/trailing-mdoc.out_lint3
4 files changed, 26 insertions, 3 deletions
diff --git a/regress/usr.bin/mandoc/char/space/Makefile b/regress/usr.bin/mandoc/char/space/Makefile
index b6ca873b6ed..b6095de3df2 100644
--- a/regress/usr.bin/mandoc/char/space/Makefile
+++ b/regress/usr.bin/mandoc/char/space/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.11 2014/10/28 02:49:48 schwarze Exp $
+# $OpenBSD: Makefile,v 1.12 2016/12/07 23:27:42 schwarze Exp $
-REGRESS_TARGETS = leading-mdoc leading-man multiple zerowidth
+REGRESS_TARGETS = leading-mdoc leading-man multiple trailing-mdoc zerowidth
REGRESS_TARGETS += eos eos-man break nobreak
REGRESS_TARGETS += tab tab-man esct-mdoc esct-man
@@ -8,6 +8,6 @@ UTF8_TARGETS = zerowidth
HTML_TARGETS = zerowidth
-LINT_TARGETS = tab tab-man esct-mdoc esct-man
+LINT_TARGETS = trailing-mdoc tab tab-man esct-mdoc esct-man
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/char/space/trailing-mdoc.in b/regress/usr.bin/mandoc/char/space/trailing-mdoc.in
new file mode 100644
index 00000000000..3cc8dc0838c
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/space/trailing-mdoc.in
@@ -0,0 +1,11 @@
+.Dd December 8, 2016
+.Dt SPACE-TRAILING-MDOC 1
+.Os OpenBSD
+.Sh NAME
+.Nm space-trailing-mdoc
+.Nd trailing spaces on input lines
+.Sh DESCRIPTION
+on a text line,
+on a
+.Em macro
+line, after a comment \"
diff --git a/regress/usr.bin/mandoc/char/space/trailing-mdoc.out_ascii b/regress/usr.bin/mandoc/char/space/trailing-mdoc.out_ascii
new file mode 100644
index 00000000000..28c32ed8b2f
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/space/trailing-mdoc.out_ascii
@@ -0,0 +1,9 @@
+SPACE-TRAILING-MDOC(1) General Commands Manual SPACE-TRAILING-MDOC(1)
+
+NNAAMMEE
+ ssppaaccee--ttrraaiilliinngg--mmddoocc - trailing spaces on input lines
+
+DDEESSCCRRIIPPTTIIOONN
+ on a text line, on a _m_a_c_r_o line, after a comment
+
+OpenBSD December 8, 2016 OpenBSD
diff --git a/regress/usr.bin/mandoc/char/space/trailing-mdoc.out_lint b/regress/usr.bin/mandoc/char/space/trailing-mdoc.out_lint
new file mode 100644
index 00000000000..a64141eaaa1
--- /dev/null
+++ b/regress/usr.bin/mandoc/char/space/trailing-mdoc.out_lint
@@ -0,0 +1,3 @@
+mandoc: trailing-mdoc.in:8:16: WARNING: whitespace at end of input line
+mandoc: trailing-mdoc.in:10:12: WARNING: whitespace at end of input line
+mandoc: trailing-mdoc.in:11:27: WARNING: whitespace at end of input line