groff-commit
[Top][All Lists]
Advanced

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

[groff] 06/16: [tests]: Make robust to environment settings.


From: G. Branden Robinson
Subject: [groff] 06/16: [tests]: Make robust to environment settings.
Date: Mon, 23 Aug 2021 00:06:40 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 2584cf24062a61e94a452b960c24837522af4fef
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Aug 21 14:11:15 2021 +1000

    [tests]: Make robust to environment settings.
    
    * src/roff/groff/tests/use_point_size_escape_with_single_digit_arg.sh:
    * src/roff/nroff/tests/verbose_option_works.sh:
    * tmac/tests/s_IP-indents-using-paragraph-type-size.sh: Export empty
      $LESSCHARSET and $GROFF_TYPESETTER to the environment.
    
    Fixes <https://savannah.gnu.org/bugs/?61040>.  Thanks to Bjarni Ingi
    Gislason for the report.
---
 ChangeLog                                                   | 13 +++++++++++++
 .../tests/use_point_size_escape_with_single_digit_arg.sh    |  1 +
 src/roff/nroff/tests/verbose_option_works.sh                |  2 ++
 tmac/tests/s_IP-indents-using-paragraph-type-size.sh        |  1 +
 4 files changed, 17 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 23b8d6c..8c37077 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
 2021-08-21  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       [tests]: Make robust against $GROFF_TYPESETTER settings.
+
+       * src/roff/groff/tests/\
+       use_point_size_escape_with_single_digit_arg.sh:
+       * src/roff/nroff/tests/verbose_option_works.sh:
+       * tmac/tests/s_IP-indents-using-paragraph-type-size.sh: Export
+       an empty $GROFF_TYPESETTER to the environment.
+
+       Fixes <https://savannah.gnu.org/bugs/?61040>.  Thanks to Bjarni
+       Ingi Gislason for the report.
+
+2021-08-21  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        [libgroff]: Treat an empty $GROFF_TYPESETTER as unset.
 
        * src/libs/libgroff/device.cpp (device_init::device_init): Test
diff --git 
a/src/roff/groff/tests/use_point_size_escape_with_single_digit_arg.sh 
b/src/roff/groff/tests/use_point_size_escape_with_single_digit_arg.sh
index 2c0aa4b..b596388 100755
--- a/src/roff/groff/tests/use_point_size_escape_with_single_digit_arg.sh
+++ b/src/roff/groff/tests/use_point_size_escape_with_single_digit_arg.sh
@@ -19,6 +19,7 @@
 #
 
 groff="${abs_top_builddir:-.}/test-groff"
+export GROFF_TYPESETTER=
 
 # The vertical space is so that the 36-point 'A' won't be truncated by
 # the top of the page.  That could be confusing and misleading to anyone
diff --git a/src/roff/nroff/tests/verbose_option_works.sh 
b/src/roff/nroff/tests/verbose_option_works.sh
index bdee8a1..85ca8f0 100755
--- a/src/roff/nroff/tests/verbose_option_works.sh
+++ b/src/roff/nroff/tests/verbose_option_works.sh
@@ -20,6 +20,8 @@
 
 # Ensure a predictable character encoding.
 export LC_ALL=C
+export LESSCHARSET=
+export GROFF_TYPESETTER=
 
 set -e
 
diff --git a/tmac/tests/s_IP-indents-using-paragraph-type-size.sh 
b/tmac/tests/s_IP-indents-using-paragraph-type-size.sh
index 17d0d09..0973107 100755
--- a/tmac/tests/s_IP-indents-using-paragraph-type-size.sh
+++ b/tmac/tests/s_IP-indents-using-paragraph-type-size.sh
@@ -19,6 +19,7 @@
 #
 
 groff="${abs_top_builddir:-.}/test-groff"
+export GROFF_TYPESETTER=
 
 # Regression-test Savannah #59604.
 #



reply via email to

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