gbranden pushed a commit to branch master
in repository groff.
commit cef376097c50115ccc59853680c16c886eed53b5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Dec 1 18:50:04 2025 -0600
[groff]: Regression-test Savannah #67570.
* src/roff/groff/tests/cflags-works-on-character-classes.sh: Do it.
* src/roff/groff/groff.am (groff_TESTS): Run test.
Test fails at this commit.
---
ChangeLog | 8 +++++
src/roff/groff/groff.am | 1 +
.../tests/cflags-works-on-character-classes.sh | 39 ++++++++++++++++++++++
3 files changed, 48 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index e483c6326..be5a432e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-12-01 G. Branden Robinson <[email protected]>
+
+ [groff]: Regression-test Savannah #67570.
+
+ * src/roff/groff/tests/cflags-works-on-character-classes.sh: Do
+ it.
+ * src/roff/groff/groff.am (groff_TESTS): Run test.
+
2025-11-30 G. Branden Robinson <[email protected]>
* src/roff/troff/number.cpp (is_valid_expression_start):
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 52aed8770..6d9c1e272 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -51,6 +51,7 @@ groff_TESTS = \
src/roff/groff/tests/break-zero-length-output-line-sanely.sh \
src/roff/groff/tests/cf-request-early-does-not-fail.sh \
src/roff/groff/tests/cf-request-works.sh \
+ src/roff/groff/tests/cflags-works-on-character-classes.sh \
src/roff/groff/tests/check-delimiter-validity.sh \
src/roff/groff/tests/composite-nodes-produce-approximate-output.sh \
src/roff/groff/tests/current-language-and-environment-in-sync.sh \
diff --git a/src/roff/groff/tests/cflags-works-on-character-classes.sh
b/src/roff/groff/tests/cflags-works-on-character-classes.sh
new file mode 100755
index 000000000..553dbd03e
--- /dev/null
+++ b/src/roff/groff/tests/cflags-works-on-character-classes.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# Copyright 2025 G. Branden Robinson
+#
+# This file is part of groff.
+#
+# 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 #67570. Thanks to Dave Kemper for the
+# reproducer.
+
+input='.
+.ec @
+.class [EOS] @[em]
+.cflags 1 @C![EOS]!
+1234567890123456
+.br
+I@[em]
+fold.
+.pl @n[nl]u
+.'
+
+output=$(printf "%s\n" "$input" | "$groff" -T ascii)
+echo "$output" | grep -Fqx 'I-- fold.'
+
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit