gbranden pushed a commit to branch master
in repository groff.
commit 99871a67e21df7dcd2633d0f5b558190c190c794
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 1 04:45:36 2026 -0500
[groff]: Regression-test Savannah #68202.
* src/roff/groff/tests/hw-request-skips-only-invalid-arguments.sh: Do
it.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 8 +++++
src/roff/groff/groff.am | 1 +
.../hw-request-skips-only-invalid-arguments.sh | 35 ++++++++++++++++++++++
3 files changed, 44 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index ae7fbb895..2c6a71e7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-04-01 G. Branden Robinson <[email protected]>
+
+ [groff]: Regression-test Savannah #68202.
+
+ * src/roff/groff/tests/\
+ hw-request-skips-only-invalid-arguments.sh: Do it.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2026-04-01 G. Branden Robinson <[email protected]>
* src/roff/troff/env.cpp
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 6475b7b8c..f69a09b0b 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -95,6 +95,7 @@ groff_TESTS = \
src/roff/groff/tests/html-device-smoke-test.sh \
src/roff/groff/tests/html-device-works-with-grn-and-eqn.sh \
src/roff/groff/tests/html-does-not-fumble-tagged-paragraph.sh \
+ src/roff/groff/tests/hw-request-skips-only-invalid-arguments.sh \
src/roff/groff/tests/hys-request-works.sh \
src/roff/groff/tests/initialization-is-quiet.sh \
src/roff/groff/tests/latin1-device-maps-oq-to-0x27.sh \
diff --git a/src/roff/groff/tests/hw-request-skips-only-invalid-arguments.sh
b/src/roff/groff/tests/hw-request-skips-only-invalid-arguments.sh
new file mode 100755
index 000000000..5d5f39b92
--- /dev/null
+++ b/src/roff/groff/tests/hw-request-skips-only-invalid-arguments.sh
@@ -0,0 +1,35 @@
+#!/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"
+
+# Verify that invoking the `hw` request and invalid argument still
+# processes subsequent valid ones on the input line. Savannah #68202.
+
+input='.
+.hw MODOK\%MODOK baz-qux
+.ll 5n
+bazqux
+.'
+
+output=$(printf '%s\n' "$input" | "$groff" -W break -a)
+echo "$output"
+echo "$output" | grep -qx 'baz<hy>'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit