gbranden pushed a commit to branch master
in repository groff.

commit 6a7f51677fb78c59b6398431118c212070d92e5e
Author: G. Branden Robinson <g.branden.robin...@gmail.com>
AuthorDate: Mon Mar 17 01:04:21 2025 -0500

    [groff]: Regression-test Savannah #55799.
    
    * src/roff/groff/tests/composite-nodes-produce-approximate-output.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 +
 .../composite-nodes-produce-approximate-output.sh  | 38 ++++++++++++++++++++++
 3 files changed, 47 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 825a215d6..c66ec11c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2025-03-17  G. Branden Robinson <g.branden.robin...@gmail.com>
+
+       [groff]: Regression-test Savannah #55799.
+
+       * src/roff/groff/tests/\
+       composite-nodes-produce-approximate-output.sh: Do it.
+       * src/roff/groff/groff.am (groff_TESTS): Run test.
+
 2025-03-16  G. Branden Robinson <g.branden.robin...@gmail.com>
 
        * src/roff/troff/node.cpp (class composite_node): Add
diff --git a/src/roff/groff/groff.am b/src/roff/groff/groff.am
index 15c752e3d..f371d4987 100644
--- a/src/roff/groff/groff.am
+++ b/src/roff/groff/groff.am
@@ -47,6 +47,7 @@ groff_TESTS = \
   src/roff/groff/tests/cf-request-early-does-not-fail.sh \
   src/roff/groff/tests/cf-request-works.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 \
   src/roff/groff/tests/degenerate-control-flow-works.sh \
   src/roff/groff/tests/detect-evil-link-time-optimizer.sh \
diff --git a/src/roff/groff/tests/composite-nodes-produce-approximate-output.sh 
b/src/roff/groff/tests/composite-nodes-produce-approximate-output.sh
new file mode 100755
index 000000000..dafcafac9
--- /dev/null
+++ b/src/roff/groff/tests/composite-nodes-produce-approximate-output.sh
@@ -0,0 +1,38 @@
+#!/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"
+
+# Regression-test Savannah #55799.
+#
+# Verify that the formatter traverses into the contents of composite
+# nodes when formatting them for approximate output.
+
+input='.
+.char a xyz
+Men plan,
+God laughs.
+.'
+
+output=$(printf "%s\n" "$input" | "$groff" -T ps -a)
+echo "$output"
+echo "$output" | grep -q 'Men plxyzn, God lxyzughs.'
+
+# vim:set autoindent expandtab shiftwidth=2 tabstop=2 textwidth=72:

_______________________________________________
groff-commit mailing list
groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to