gbranden pushed a commit to branch master
in repository groff.

commit fc80908bacee726c71e8f57c87d2512f00c98306
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Aug 16 14:23:02 2026 -0500

    [troff]: Regression-test Savannah #68618.
    
    * src/roff/groff/tests/stringdown-and-stringup-requests-work.sh: Add
      test case.
    
    Also drop stump comment after license notice.
    
    Also add Vim modeline.
    
    Test fails at this commit.
---
 ChangeLog                                          |  7 ++++++
 .../tests/stringdown-and-stringup-requests-work.sh | 26 +++++++++++++++++++---
 2 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 881084a47..2b2bd198d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-08-16  G. Branden Robinson <[email protected]>
+
+       [troff]: Regression-test Savannah #68618.
+
+       * src/roff/groff/tests/stringdown-and-stringup-requests-work.sh:
+       Add test case.
+
 2026-08-09  G. Branden Robinson <[email protected]>
 
        * tmac/groff_man.7.man.in (Notes) [style]: Tell document authors
diff --git a/src/roff/groff/tests/stringdown-and-stringup-requests-work.sh 
b/src/roff/groff/tests/stringdown-and-stringup-requests-work.sh
index accc24824..53eb2a1d5 100755
--- a/src/roff/groff/tests/stringdown-and-stringup-requests-work.sh
+++ b/src/roff/groff/tests/stringdown-and-stringup-requests-work.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright 2019-2020 G. Branden Robinson
+# Copyright 2019-2026 G. Branden Robinson
 #
 # This file is part of groff, the GNU roff typesetting system.
 #
@@ -16,10 +16,18 @@
 #
 # 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
+}
+
+# Unit-test `stringdown` and `stringup` requests.
+
 input=".pl 1v
 .ds resume R\\['e]sum\\['e]\\\"
 \\*[resume]
@@ -29,4 +37,16 @@ input=".pl 1v
 \\*[resume]"
 expected="Résumé résumé RÉSUMÉ"
 actual=$(echo "$input" | "$groff" -Tutf8)
-test "$actual" = "$expected"
+
+echo "checking that stringdown and stringup requests work" >&2
+test "$actual" = "$expected" || wail
+
+# Regression-test Savannah #68618.
+echo "checking that stringdown and stringup requests do not format" \
+    "excess arguments" >&2
+printf "foo\n.stringdown bar baz\n.stringdown qux jat\nurp\n" \
+    | "$groff" -a | grep -Fqx 'foo urp' || 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