gbranden pushed a commit to branch master
in repository groff.
commit 12f546f99a2ccc27156d117b5e2b9918010244ab
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jul 26 00:21:00 2026 -0500
[groff]: Regression-test Savannah #68552.
* src/roff/groff/tests/error-grief-token-descriptions.sh: Do it.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 7 ++++
src/roff/groff/groff.am | 1 +
.../groff/tests/error-grief-token-descriptions.sh | 45 ++++++++++++++++++++++
3 files changed, 53 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 9ff3618f4..6459ec737 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-07-24 G. Branden Robinson <[email protected]>
+
+ [groff]: Regression-test Savannah #68552.
+
+ * src/roff/groff/tests/error-grief-token-descriptions.sh: Do it.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2026-07-24 G. Branden Robinson <[email protected]>
[troff]: Fix Savannah #68558.
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 7632f1e66..426301912 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -104,6 +104,7 @@ groff_TESTS = \
src/roff/groff/tests/dt-request-works.sh \
src/roff/groff/tests/dvi-device-smoke-test.sh \
src/roff/groff/tests/error-dt-request-given-bogus-arguments.sh \
+ src/roff/groff/tests/error-grief-token-descriptions.sh \
src/roff/groff/tests/error-no-space-between-dt-or-wh-arguments.sh \
src/roff/groff/tests/error-overflow-symbol-table.sh \
src/roff/groff/tests/evc-request-produces-no-output-if-invalid.sh \
diff --git a/src/roff/groff/tests/error-grief-token-descriptions.sh
b/src/roff/groff/tests/error-grief-token-descriptions.sh
new file mode 100755
index 000000000..472812844
--- /dev/null
+++ b/src/roff/groff/tests/error-grief-token-descriptions.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+# Copyright 2026 G. Branden Robinson
+#
+# This file is part of groff, the GNU roff typesetting system.
+#
+# 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"
+
+# Validate error path and improve code coverage.
+#
+# Put stress on `token::description()` and its supporting functions,
+# like `describe_node()`, which have to manage a lot of string buffers
+# to construct diagnostic messages for the user.
+#
+# Node descriptions are also used by node dumpers.
+#
+# Memory debugging can provoke program aborts from the code paths these
+# inputs exercise.
+
+input='.
+.ec @
+.nr @a 1
+.nr @b
+.rr @a
+.rr @b @c
+fnord
+.'
+
+output=$(printf '%s\n' "$input" | "$groff" -a)
+echo "$output" | grep -qx "fnord"
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit