gbranden pushed a commit to branch master
in repository groff.

commit e659114abed3ae560c1dcb1e58311499ff4f61fd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Jan 18 09:27:26 2026 -0600

    [groff]: Fix portability problem in test script.
    
    * src/roff/groff/tests/lj4-device-smoke-test.sh: Pass `-P -pletter`
      arguments to groff, to compel output driver to use U.S. letter paper
      format.  Fixes test failure in environments where this paper format is
      not the default.
    
    Fixes <https://savannah.gnu.org/bugs/?67927>.  Thanks to Bjarni Ingi
    Gislason for the report and Deri James for the analysis and solution.
---
 ChangeLog                                     | 11 +++++++++++
 src/roff/groff/tests/lj4-device-smoke-test.sh |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index a60c82b2b..a75cd4f00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2026-01-18  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/tests/lj4-device-smoke-test.sh: Pass `-P
+       -pletter` arguments to groff, to compel output driver to use
+       U.S. letter paper format.  Fixes test failure in environments
+       where this paper format is not the default.
+
+       Fixes <https://savannah.gnu.org/bugs/?67927>.  Thanks to Bjarni
+       Ingi Gislason for the report and Deri James for the analysis and
+       solution.
+
 2026-01-16  G. Branden Robinson <[email protected]>
 
        * doc/groff.texi.in:
diff --git a/src/roff/groff/tests/lj4-device-smoke-test.sh 
b/src/roff/groff/tests/lj4-device-smoke-test.sh
index f7b6c32bc..82bfab262 100755
--- a/src/roff/groff/tests/lj4-device-smoke-test.sh
+++ b/src/roff/groff/tests/lj4-device-smoke-test.sh
@@ -24,7 +24,7 @@ groff="${abs_top_builddir:-.}/test-groff"
 #0000100   l   o esc   *   p   -   9   X   , esc   *   p   +   4   9   X
 #0000120   w esc   *   p   -   9   X   o   r   l   d   !  ff esc   E
 
-output=$(echo "Hello, world!" | "$groff" -T lj4 | od -t a)
+output=$(echo "Hello, world!" | "$groff" -T lj4 -P -pletter | od -t a)
 echo "$output" | grep '^0000060'
 echo "$output" | grep '^00001[02]0'
 echo "$output" | grep -Eq '^0000060.*H +e +l'            || exit 1

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

Reply via email to