gbranden pushed a commit to branch master
in repository groff.

commit a908a55e925f2af1fd45bfa82393454a51945e66
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Oct 18 21:38:27 2026 -0500

    [groff]: Regression-test Savannah #68797.
    
    * src/roff/groff/tests/error-rn-request-given-bogus-arguments.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 +
 .../error-rn-request-given-bogus-arguments.sh      | 39 ++++++++++++++++++++++
 3 files changed, 48 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 3be2210e0..9690bbc12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-10-18  G. Branden Robinson <[email protected]>
+
+       [groff]: Regression-test Savannah #68797.
+
+       * src/roff/groff/tests/\
+       error-rn-request-given-bogus-arguments.sh: New file; do it.
+       * src/roff/groff/groff.am: Update `groff_TESTS` to run test.
+
 2026-10-18  G. Branden Robinson <[email protected]>
 
        [troff]: `pcolor` req advances past invalid args.
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index ab88669fd..a9e405f8e 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -116,6 +116,7 @@ groff_TESTS = \
   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-rm-request-given-bogus-argument.sh \
+  src/roff/groff/tests/error-rn-request-given-bogus-arguments.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 \
diff --git a/src/roff/groff/tests/error-rn-request-given-bogus-arguments.sh 
b/src/roff/groff/tests/error-rn-request-given-bogus-arguments.sh
new file mode 100755
index 000000000..19ca733c0
--- /dev/null
+++ b/src/roff/groff/tests/error-rn-request-given-bogus-arguments.sh
@@ -0,0 +1,39 @@
+#!/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"
+
+fail=
+
+wail () {
+   echo "...FAILED"
+   fail=yes
+}
+
+# Regression-test Savannah #68797.
+
+echo "checking whether 'rn' request crashes on invalid first argument"
+printf '.rn \002 output-device\n' | "$groff" -T ascii 2>&1 || wail
+
+echo "checking whether 'rn' request crashes on invalid second argument"
+printf '.rn .T \002\n' | "$groff" -T ascii 2>&1 || wail
+
+test -z "$fail"
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to