gbranden pushed a commit to branch master
in repository groff.
commit 6b4f3afff2040a151696fd7a9bfb3d188be7d7a7
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Feb 15 23:21:57 2023 -0600
tmac/tests/an_use-input-traps-correctly.sh: Fix.
* tmac/tests/an_use-input-traps-correctly.sh: Explicitly test `SM` and
`SB` with 'ps' output device. If one set GROFF_TYPESETTER=utf8 in the
test environment, these test cases would fail. Thanks to John Gardner
for the report.
---
ChangeLog | 7 +++++++
tmac/tests/an_use-input-traps-correctly.sh | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2d7034282..53427172a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2023-02-15 G. Branden Robinson <[email protected]>
+
+ * tmac/tests/an_use-input-traps-correctly.sh: Explicitly test
+ `SM` and `SB` with 'ps' output device. If one set
+ GROFF_TYPESETTER=utf8 in the test environment, these test cases
+ would fail. Thanks to John Gardner for the report.
+
2023-02-15 G. Branden Robinson <[email protected]>
* configure.ac: Add Automake conditional, `HAVE_GHOSTSCRIPT`, so
diff --git a/tmac/tests/an_use-input-traps-correctly.sh
b/tmac/tests/an_use-input-traps-correctly.sh
index c4094beb9..4ad76e64d 100755
--- a/tmac/tests/an_use-input-traps-correctly.sh
+++ b/tmac/tests/an_use-input-traps-correctly.sh
@@ -80,7 +80,7 @@ input=".TH foo 1 2022-06-07 \"groff test suite\"
.SM \\\\n[.s]\c
\\n[.s]"
-output=$(printf "%s\n" "$input" | "$groff" -man -a 2>&1)
+output=$(printf "%s\n" "$input" | "$groff" -man -a -Tps 2>&1)
echo "checking that SM macro uses correct input trap 'it'" >&2
echo "$output" | grep -Fqx '910' || wail
@@ -91,7 +91,7 @@ input=".TH foo 1 2022-06-07 \"groff test suite\"
.SB \\\\n[.fn]\\\\n[.s]\c
\\n[.fn]\\n[.s]"
-output=$(printf "%s\n" "$input" | "$groff" -man -a 2>&1)
+output=$(printf "%s\n" "$input" | "$groff" -man -a -Tps 2>&1)
echo "checking that SB macro uses correct input trap 'it'" >&2
echo "$output" | grep -Fqx 'TB9TR10' || wail
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit