gbranden pushed a commit to branch master
in repository groff.
commit 33bf4b12eddb2148f1ea807aa1c25303e054bb31
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Oct 17 15:52:12 2026 -0500
[groff]: Regression-test Savannah #68790.
* src/roff/groff/tests/error-rr-request-given-bogus-argument.sh: New
file; do it.
* src/roff/groff/groff.am: Update `groff_TESTS` to run test.
Test fails at this commit.
---
ChangeLog | 8 +++++
src/roff/groff/groff.am | 1 +
.../tests/error-rr-request-given-bogus-argument.sh | 41 ++++++++++++++++++++++
3 files changed, 50 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 4ece2cdfb..121943a4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-10-17 G. Branden Robinson <[email protected]>
+
+ [groff]: Regression-test Savannah #68790.
+
+ * src/roff/groff/tests/error-rr-request-given-bogus-argument.sh:
+ New file; do it.
+ * src/roff/groff/groff.am: Update `groff_TESTS` to run test.
+
2026-10-17 G. Branden Robinson <[email protected]>
[troff]: Add `skip_rest_of_argument()`.
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index cd3cac23b..4f26aea08 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -112,6 +112,7 @@ groff_TESTS = \
src/roff/groff/tests/error-overflow-symbol-table.sh \
src/roff/groff/tests/error-pi-request-given-empty-argument.sh \
src/roff/groff/tests/error-pso-request-given-empty-argument.sh \
+ src/roff/groff/tests/error-rr-request-given-bogus-argument.sh \
src/roff/groff/tests/error-so-request-given-empty-argument.sh \
src/roff/groff/tests/error-sy-request-given-empty-argument.sh \
src/roff/groff/tests/evc-request-produces-no-output-if-invalid.sh \
diff --git a/src/roff/groff/tests/error-rr-request-given-bogus-argument.sh
b/src/roff/groff/tests/error-rr-request-given-bogus-argument.sh
new file mode 100755
index 000000000..add82b571
--- /dev/null
+++ b/src/roff/groff/tests/error-rr-request-given-bogus-argument.sh
@@ -0,0 +1,41 @@
+#!/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"
+
+# Regression-test Savannah #68790.
+#
+# An invalid identifier in the list given to the `rr` request should not
+# halt its argument processing.
+
+input='.
+.nr a 1
+.nr b 2
+.nr c 3
+.rr a b
+a=\n[a] b=\n[b] c=\n[c]
+.br
+.pl \n[nl]u
+.'
+
+output=$(printf '%s\n' "$input" | "$groff" -T ascii)
+echo "$output"
+echo "$output" | grep -qx 'a=0 b=0 c=3'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit