gbranden pushed a commit to branch master
in repository groff.

commit 0932737f9299c0371453fed53c0a0032ec9a6fe7
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Apr 20 21:15:02 2025 -0500

    [groff]: Regression-test Savannah #67038.
    
    Test behavior of `.b` register.
    
    * src/roff/groff/tests/dot-b-register-works.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 +
 src/roff/groff/tests/dot-b-register-works.sh | 32 ++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index aa1f8a89e..209dc357b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-04-20  G. Branden Robinson <[email protected]>
+
+       [groff]: Regression-test Savannah #67038 (behavior of `.b`
+       register).
+
+       * src/roff/groff/tests/dot-b-register-works.sh: Do it.
+       * src/roff/groff/groff.am (groff_TESTS): Run test.
+
 2025-04-20  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/node.cpp: Trivially refactor, continuing naming
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index f6c7b73ad..1a13d6563 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -58,6 +58,7 @@ groff_TESTS = \
   src/roff/groff/tests/devicem-request-works.sh \
   src/roff/groff/tests/do-not-free-file-name-pointers-early.sh \
   src/roff/groff/tests/do-not-loop-infinitely-when-breaking-cjk.sh \
+  src/roff/groff/tests/dot-b-register-works.sh \
   src/roff/groff/tests/dot-cp-register-works.sh \
   src/roff/groff/tests/dot-nm-register-works.sh \
   src/roff/groff/tests/dot-nn-register-works.sh \
diff --git a/src/roff/groff/tests/dot-b-register-works.sh 
b/src/roff/groff/tests/dot-b-register-works.sh
new file mode 100755
index 000000000..54ea1ed4d
--- /dev/null
+++ b/src/roff/groff/tests/dot-b-register-works.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# Copyright (C) 2025 Free Software Foundation, Inc.
+#
+# 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"
+
+input='.
+.bd TR 10
+.tm .b=\n(.b
+.'
+
+output=$(printf "%s" "$input" | "$groff" -z 2>&1)
+echo "$output"
+echo "$output" | grep -Fqx '.b=10'
+
+# vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72:

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

Reply via email to