gbranden pushed a commit to branch master
in repository groff.
commit 21eb1b23b36644b5037cf72a6cbdf521f51e1add
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Aug 19 18:12:32 2023 -0500
[groff]: Update test conventions.
* src/roff/groff/tests/regression_savannah_58153.sh: Migrate to more
recent test conventions, emitting the formatted output and updating
the style of shell usage.
Still fails against groff 1.22.3 and succ
---
src/roff/groff/tests/regression_savannah_58153.sh | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/roff/groff/tests/regression_savannah_58153.sh
b/src/roff/groff/tests/regression_savannah_58153.sh
index 25771fd7a..fa5906335 100755
--- a/src/roff/groff/tests/regression_savannah_58153.sh
+++ b/src/roff/groff/tests/regression_savannah_58153.sh
@@ -20,15 +20,28 @@
groff="${abs_top_builddir:-.}/test-groff"
+fail=
+
+wail () {
+ echo "...FAILED" >&2
+ fail=yes
+}
+
# Ensure that we get backtrace output across file and pipe boundaries.
# Savannah #58153.
-OUT=$("$groff" -b -ww -U 2>&1 >/dev/null <<EOF
+output=$("$groff" -b -ww -U 2>&1 <<EOF
.ec @
.pso printf '@s[-20]'
EOF
)
-set -e
+echo "$output"
+
+echo "checking that pipe object is visible in backtrace"
+printf "%s\n" "$output" | grep -qw 'backtrace: pipe' || wail
+echo "checking that file object is visible in backtrace"
+printf "%s\n" "$output" | grep -qw 'backtrace: file' || wail
+
+test -z "$fail"
-printf "%s\n" "$OUT" | grep -qw 'backtrace: pipe'
-printf "%s\n" "$OUT" | grep -qw 'backtrace: file'
+# vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72:
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit