gbranden pushed a commit to branch master
in repository groff.

commit 557279853ba57145d88eae77c97cc953ce10a299
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Apr 18 21:26:47 2026 -0500

    [groff]: Repair test script.
    
    * src/roff/groff/tests/dot-nm-register-works.sh: Repair test script so
      it can fail again.  Problem introduced by me in commit 7aaeddf570, 14
      April.
---
 ChangeLog                                     |  6 ++++++
 src/roff/groff/tests/dot-nm-register-works.sh | 10 ++++++----
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a4b7e0e4d..05f180ba2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-04-18  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/tests/dot-nm-register-works.sh: Repair test
+       script so it can fail again.  Problem introduced by me in commit
+       7aaeddf570, 14 April.
+
 2026-04-16  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/env.cpp
diff --git a/src/roff/groff/tests/dot-nm-register-works.sh 
b/src/roff/groff/tests/dot-nm-register-works.sh
index 67c011655..4c5c0cee0 100755
--- a/src/roff/groff/tests/dot-nm-register-works.sh
+++ b/src/roff/groff/tests/dot-nm-register-works.sh
@@ -36,9 +36,11 @@ qux (\n[.nm])
 output=$(printf '%s\n' "$input" | "$groff" -T utf8)
 echo "$output"
 
-echo "$output" | grep -Fqx 'foo (0)'
-echo "$output" | grep -Fqx '  1 bar (1)'
-echo "$output" | grep -Fqx 'baz (1)'
-echo "$output" | grep -Fqx 'qux (0)'
+echo "$output" | grep -Fqx 'foo (0)' || fail=yes
+echo "$output" | grep -Fqx '  1 bar (1)' || fail=yes
+echo "$output" | grep -Fqx 'baz (1)' || fail=yes
+echo "$output" | grep -Fqx 'qux (0)' || fail=yes
+
+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