groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 02/03: [groff]: Improve portability of a test.


From: G. Branden Robinson
Subject: [groff] 02/03: [groff]: Improve portability of a test.
Date: Sun, 19 Feb 2023 12:10:57 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 3aa9d30cf47d4bb945276db6a3b963141d93f179
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Feb 19 01:24:20 2023 -0600

    [groff]: Improve portability of a test.
    
    * src/roff/groff/tests/regression_savannah_58153.sh: Improve
      portability.  Avoid the unpredictability of implementations when
      putting backslashes inside a groff-piped printf shell command inside a
      here document inside a command substitution by changing the groff
      escape character to something meaningless to the shell and to printf
      ('@').  Fixes a test failure on Solaris 11.
---
 ChangeLog                                         | 9 +++++++++
 src/roff/groff/tests/regression_savannah_58153.sh | 5 +++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 998ce594d..67102b141 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2023-02-19  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/groff/tests/regression_savannah_58153.sh: Improve
+       portability.  Avoid the unpredictability of implementations when
+       putting backslashes inside a groff-piped printf shell command
+       inside a here document inside a command substitution by changing
+       the groff escape character to something meaningless to the shell
+       and to printf ('@').  Fixes a test failure on Solaris 11.
+
 2023-02-18  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * font/devpdf/Foundry.in: Recognize URW foundry replacements for
diff --git a/src/roff/groff/tests/regression_savannah_58153.sh 
b/src/roff/groff/tests/regression_savannah_58153.sh
index 5ad92c470..25771fd7a 100755
--- a/src/roff/groff/tests/regression_savannah_58153.sh
+++ b/src/roff/groff/tests/regression_savannah_58153.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2020 Free Software Foundation, Inc.
+# Copyright (C) 2020-2023 Free Software Foundation, Inc.
 #
 # This file is part of groff.
 #
@@ -23,7 +23,8 @@ groff="${abs_top_builddir:-.}/test-groff"
 # Ensure that we get backtrace output across file and pipe boundaries.
 # Savannah #58153.
 OUT=$("$groff" -b -ww -U 2>&1 >/dev/null <<EOF
-.pso printf '\\\s[-20]\\\n'
+.ec @
+.pso printf '@s[-20]'
 EOF
 )
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]