summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/mdoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-07-07 16:12:07 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-07-07 16:12:07 +0000
commitf35d4d1a46fee7686edf8d4d08f125069d4dc857 (patch)
treec3d2f2b50c245fe2b8fe34fe01fa284d69592eff /regress/usr.bin/mandoc/mdoc
parente9c98b01dbf4aab839369afcc72089954c853f1f (diff)
no need to delete any content from .Rs blocks,
and downgrade the related message from ERROR to WARNING
Diffstat (limited to 'regress/usr.bin/mandoc/mdoc')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Rs/Makefile5
-rw-r--r--regress/usr.bin/mandoc/mdoc/Rs/allch.in12
-rw-r--r--regress/usr.bin/mandoc/mdoc/Rs/allch.out_ascii19
-rw-r--r--regress/usr.bin/mandoc/mdoc/Rs/allch.out_lint6
4 files changed, 28 insertions, 14 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Rs/Makefile b/regress/usr.bin/mandoc/mdoc/Rs/Makefile
index c4e871f59b0..50a32b500be 100644
--- a/regress/usr.bin/mandoc/mdoc/Rs/Makefile
+++ b/regress/usr.bin/mandoc/mdoc/Rs/Makefile
@@ -1,5 +1,6 @@
-# $OpenBSD: Makefile,v 1.5 2012/07/11 23:45:26 schwarze Exp $
+# $OpenBSD: Makefile,v 1.6 2014/07/07 16:12:06 schwarze Exp $
-REGRESS_TARGETS=allch break three_authors
+REGRESS_TARGETS = allch break three_authors
+LINT_TARGETS = allch
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/mandoc/mdoc/Rs/allch.in b/regress/usr.bin/mandoc/mdoc/Rs/allch.in
index 7837fd18ddd..abffe80333c 100644
--- a/regress/usr.bin/mandoc/mdoc/Rs/allch.in
+++ b/regress/usr.bin/mandoc/mdoc/Rs/allch.in
@@ -1,4 +1,4 @@
-.Dd July 25, 2013
+.Dd July 7, 2014
.Dt RS-ALLCH 1
.Os OpenBSD
.Sh NAME
@@ -11,11 +11,14 @@ reference on the same line:
.%T title of article
.%B book title
.%I issuer name
+some
.%J journal name
.%R report name
.%N number of journal
.%V volume number
-.%U uniform resource locator
+.Em bogus
+text
+.%U "uniform resource locator"
.%P page number
.%Q institutional author
.%C city name
@@ -29,11 +32,14 @@ reference after a blank line:
.%T title of article
.%B book title
.%I issuer name
+some
+.Em bogus
.%J journal name
.%R report name
.%N number of journal
.%V volume number
-.%U uniform resource locator
+text
+.%U "uniform resource locator"
.%P page number
.%Q institutional author
.%C city name
diff --git a/regress/usr.bin/mandoc/mdoc/Rs/allch.out_ascii b/regress/usr.bin/mandoc/mdoc/Rs/allch.out_ascii
index ac5c2ae63aa..a0a2e0e12d5 100644
--- a/regress/usr.bin/mandoc/mdoc/Rs/allch.out_ascii
+++ b/regress/usr.bin/mandoc/mdoc/Rs/allch.out_ascii
@@ -4,17 +4,18 @@ NNAAMMEE
RRss--aallllcchh - reference block using all supported child macros
DDEESSCCRRIIPPTTIIOONN
- reference on the same line: author name, "title of article", _b_o_o_k _t_i_t_l_e,
- _i_s_s_u_e_r _n_a_m_e, _j_o_u_r_n_a_l _n_a_m_e, report name, number of journal, volume number,
- uniform resource locator, page number, institutional author, city name,
- date of publication, optional information.
+ reference on the same line: some _b_o_g_u_s text author name, "title of
+ article", _b_o_o_k _t_i_t_l_e, _i_s_s_u_e_r _n_a_m_e, _j_o_u_r_n_a_l _n_a_m_e, report name, number of
+ journal, volume number, uniform resource locator, page number,
+ institutional author, city name, date of publication, optional
+ information.
SSEEEE AALLSSOO
reference after a blank line:
- author name, "title of article", _b_o_o_k _t_i_t_l_e, _i_s_s_u_e_r _n_a_m_e, _j_o_u_r_n_a_l _n_a_m_e,
- report name, number of journal, volume number, uniform resource locator,
- page number, institutional author, city name, date of publication,
- optional information.
+ some _b_o_g_u_s text author name, "title of article", _b_o_o_k _t_i_t_l_e, _i_s_s_u_e_r _n_a_m_e,
+ _j_o_u_r_n_a_l _n_a_m_e, report name, number of journal, volume number, uniform
+ resource locator, page number, institutional author, city name, date of
+ publication, optional information.
-OpenBSD July 25, 2013 OpenBSD
+OpenBSD July 7, 2014 OpenBSD
diff --git a/regress/usr.bin/mandoc/mdoc/Rs/allch.out_lint b/regress/usr.bin/mandoc/mdoc/Rs/allch.out_lint
new file mode 100644
index 00000000000..d8f8988f861
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Rs/allch.out_lint
@@ -0,0 +1,6 @@
+mandoc: allch.in:14:1: WARNING: invalid content in Rs block: text
+mandoc: allch.in:19:2: WARNING: invalid content in Rs block: Em
+mandoc: allch.in:20:1: WARNING: invalid content in Rs block: text
+mandoc: allch.in:35:1: WARNING: invalid content in Rs block: text
+mandoc: allch.in:36:2: WARNING: invalid content in Rs block: Em
+mandoc: allch.in:41:1: WARNING: invalid content in Rs block: text