gbranden pushed a commit to branch master
in repository groff.

commit 681c66a4c5120eb70c4fd0f1e51da0a38b363fba
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Apr 29 23:55:36 2026 -0500

    [groff]: Regression-test Savannah #68285.
    
    * src/roff/groff/tests/ti-request-works.sh: Do it.
    
    Test fails at this commit.
---
 ChangeLog                                |  6 ++++++
 src/roff/groff/tests/ti-request-works.sh | 16 ++++++++++++++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7e70b8abd..26f75002b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-04-29  G. Branden Robinson <[email protected]>
+
+       [groff]: Regression-test Savannah #68285.
+
+       * src/roff/groff/tests/ti-request-works.sh: Do it.
+
 2026-04-29  G. Branden Robinson <[email protected]>
 
        [groff]: Unit-test `ti` request.
diff --git a/src/roff/groff/tests/ti-request-works.sh 
b/src/roff/groff/tests/ti-request-works.sh
index c1927e46e..09445171c 100755
--- a/src/roff/groff/tests/ti-request-works.sh
+++ b/src/roff/groff/tests/ti-request-works.sh
@@ -49,8 +49,20 @@ output=$(printf '%s\n' "$input" | "$groff" -T ascii)
 echo "$output"
 echo "$output" | grep -qx 'qux' || wail
 
-# TODO: Check that parser returns to correct state after '.ti' with no
-# arguments.
+# Check that parser returns to correct state after '.ti' with no
+# arguments.  Savannah #68285.
+
+input2='.
+.ti
+.ce 3
+FOOBAR
+.'
+
+echo "checking that 'ti' request returns parser to correct state" \
+    "when given no arguments" >&2
+output2=$(printf '%s\n' "$input2" | "$groff" -T ascii)
+echo "$output2"
+echo "$output2" | grep -qx ' *FOOBAR' || wail
 
 test -z "$fail"
 

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

Reply via email to