groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 05/10: [man]: Regression-test Savannah #61402.


From: G. Branden Robinson
Subject: [groff] 05/10: [man]: Regression-test Savannah #61402.
Date: Sat, 30 Oct 2021 19:26:33 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 3f02aa77ccbbe2d89e8860cd79fe81e329f347fe
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 30 13:46:05 2021 +1100

    [man]: Regression-test Savannah #61402.
    
    Test fails at this commit.
---
 tmac/tests/an_handle-degenerate-input-quietly.sh | 29 ++++++++++++++++++++++++
 tmac/tmac.am                                     |  1 +
 2 files changed, 30 insertions(+)

diff --git a/tmac/tests/an_handle-degenerate-input-quietly.sh 
b/tmac/tests/an_handle-degenerate-input-quietly.sh
new file mode 100755
index 0000000..a8df013
--- /dev/null
+++ b/tmac/tests/an_handle-degenerate-input-quietly.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# Copyright (C) 2021 Free Software Foundation, Inc.
+#
+# This file is part of groff.
+#
+# groff is free software; you can redistribute it and/or modify it under
+# the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# groff is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+# for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+groff="${abs_top_builddir:-.}/test-groff"
+
+# Regression-test Savannah #61402.
+#
+# Don't spew a lot of diagnostics if we have only empty lines as input.
+
+test -z "$(echo | "$groff" -man -ww -Tascii -P-cbou 2>&1 > /dev/null)"
+
+# vim:set ai et sw=4 ts=4 tw=72:
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 7379308..8d22005 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -167,6 +167,7 @@ tmac_TESTS = \
   tmac/tests/an_X-register-works.sh \
   tmac/tests/an_avoid-two-font-denial-of-service.sh \
   tmac/tests/an_font-remapping-does-not-affect-titles.sh \
+  tmac/tests/an_handle-degenerate-input-quietly.sh \
   tmac/tests/an_inner-footer-abbreviation-works.sh \
   tmac/tests/an_no-break-after-short-paragraph-tags.sh \
   tmac/tests/an_page-footers-present.sh \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]