gbranden pushed a commit to branch master
in repository groff.

commit ebd1b9aa8cb5533e176ea11ea9e7299c82a37c47
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Oct 16 17:10:25 2026 -0500

    [groff]: Regression-test Savannah #68783.
    
    * src/roff/groff/tests/error-so-request-given-empty-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-so-request-given-empty-argument.sh | 34 ++++++++++++++++++++++
 3 files changed, 43 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 8711166f5..3a9af6556 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2026-10-16  G. Branden Robinson <[email protected]>
+
+       [groff]: Regression-test Savannah #68783.
+
+       * src/roff/groff/tests/error-so-request-given-empty-argument.sh:
+       New file; do it.
+       * src/roff/groff/groff.am: Update `groff_TESTS` to run test.
+
 2026-10-16  G. Branden Robinson <[email protected]>
 
        [groff]: Unit-test `so` request.
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 2395106ef..2d7027762 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -107,6 +107,7 @@ groff_TESTS = \
   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/error-so-request-given-empty-argument.sh \
   src/roff/groff/tests/evc-request-produces-no-output-if-invalid.sh \
   src/roff/groff/tests/fi-and-nf-requests-work.sh \
   src/roff/groff/tests/fp-request-does-not-traverse-directories.sh \
diff --git a/src/roff/groff/tests/error-so-request-given-empty-argument.sh 
b/src/roff/groff/tests/error-so-request-given-empty-argument.sh
new file mode 100755
index 000000000..a81dca387
--- /dev/null
+++ b/src/roff/groff/tests/error-so-request-given-empty-argument.sh
@@ -0,0 +1,34 @@
+#!/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 #68783.
+#
+# The `so` request should reject an empty argument sensibly (and
+# quietly, unless `-w missing`, not crash with a SEGV.
+
+input='.
+.ds a \" empty
+.so \*[a]
+.'
+
+output=$(printf '%s\n' "$input" | "$groff" -T ascii)
+
+# 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