gbranden pushed a commit to branch master
in repository groff.

commit 979e27d9c9a40e5185eaf137c75643eb4dc38ca8
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Jan 27 13:02:43 2026 -0600

    [tmac]: Fix spurious test failures on NetBSD.
    
    * tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh:
    * tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh: Fix regex to
      correctly quote a closing parenthesis _not_ used as an ERE grouping
      operator.  Fixes spurious test failures on NetBSD.  Sadly, neither GNU
      grep 3.6 nor 3.12.14 warned me of my mistake.  Thanks to Bruno Haible
      for the report.
---
 ChangeLog                                                | 9 +++++++++
 tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh | 2 +-
 tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh | 2 +-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 0d34aa468..9bfbdc409 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-01-27  G. Branden Robinson <[email protected]>
+
+       * tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh:
+       * tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh: Fix
+       regex to correctly quote a closing parenthesis _not_ used as an
+       ERE grouping operator.  Fixes spurious test failures on NetBSD.
+       Sadly, neither GNU grep 3.6 nor 3.12.14 warned me of my mistake.
+       Thanks to Bruno Haible for the report.
+
 2026-01-27  G. Branden Robinson <[email protected]>
 
        * src/preproc/tbl/tests/boxed-TH-tables-work-on-utf8-device.sh:
diff --git a/tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh 
b/tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh
index 10219e573..0b2ff586a 100755
--- a/tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh
+++ b/tmac/tests/an_MR-internal-hyperlinks-work-with-pdfmom.sh
@@ -68,7 +68,7 @@ echo "$output" \
 
 echo "checking that external links are not rewritten" >&2
 echo "$output" \
-  | grep -Eq '^ *301[[:space:]]+x X pdf: markstart .*/URI \(man:baz\(1\))' \
+  | grep -Eq '^ *301[[:space:]]+x X pdf: markstart .*/URI \(man:baz\(1\)\)' \
   || wail
 
 test -z "$fail"
diff --git a/tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh 
b/tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh
index 72d0fd98a..9d97c42e1 100755
--- a/tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh
+++ b/tmac/tests/andoc_internal-hyperlinks-work-with-pdfmom.sh
@@ -125,7 +125,7 @@ echo "$output2" \
 
 echo "checking that external links are not rewritten" >&2
 echo "$output2" \
-  | grep -Eq '^ *278[[:space:]]+x X pdf: markstart .*/URI \(man:baz\(1\))' \
+  | grep -Eq '^ *278[[:space:]]+x X pdf: markstart .*/URI \(man:baz\(1\)\)' \
   || wail
 
 test -z "$fail"

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

Reply via email to