[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 04/05: [man]: Add regression test for Savannah #61408.
From: |
G. Branden Robinson |
Subject: |
[groff] 04/05: [man]: Add regression test for Savannah #61408. |
Date: |
Tue, 2 Nov 2021 11:29:58 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 97630da56bd8c50f33e92e0168d135efc7af7d67
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Nov 2 21:29:55 2021 +1100
[man]: Add regression test for Savannah #61408.
* tmac/tests/an_inner-footer-abbreviation-works.sh: Do it.
Test fails at this commit.
---
ChangeLog | 6 ++++++
tmac/tests/an_inner-footer-abbreviation-works.sh | 13 +++++++++++++
2 files changed, 19 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 67ab45b..51fb254 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2021-11-02 G. Branden Robinson <g.branden.robinson@gmail.com>
+ [man]: Add regression test for Savannah #61408.
+
+ * tmac/tests/an_inner-footer-abbreviation-works.sh: Do it.
+
+2021-11-02 G. Branden Robinson <g.branden.robinson@gmail.com>
+
[man]: Tweak computation in URI breaking.
* tmac/an-ext.tmac (UE, ME): Stop adding the page offset `.o`
diff --git a/tmac/tests/an_inner-footer-abbreviation-works.sh
b/tmac/tests/an_inner-footer-abbreviation-works.sh
index d65deeb..26b5ba2 100755
--- a/tmac/tests/an_inner-footer-abbreviation-works.sh
+++ b/tmac/tests/an_inner-footer-abbreviation-works.sh
@@ -52,6 +52,19 @@ then
echo "...FAILED" >&2
fi
+# Regression-test Savannah #61408.
+#
+# Don't spew diagnostics if the page doesn't supply a 3rd .TH argument.
+echo 'testing for graceful behavior when TH has no 3rd argument' >&2
+INPUT='.TH patch 1 "" GNU'
+OUTPUT=$(echo "$INPUT" | "$groff" -Tascii -P-cbou -man -ww -z 2>&1)
+
+if [ -n "$OUTPUT" ]
+then
+ FAIL=yes
+ echo "...FAILED" >&2
+fi
+
test -z "$FAIL"
# vim:set ai et sw=4 ts=4 tw=72:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 04/05: [man]: Add regression test for Savannah #61408.,
G. Branden Robinson <=