summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2023-02-22 13:00:30 -0600
committerG. Branden Robinson <g.branden.robinson@gmail.com>2023-02-22 15:16:52 -0600
commitb2157f22b5b2a3abb8f5a972833e9335752cb09b (patch)
tree1ea88927c7640ef4d0d93bba5bb64e6710efba93 /src
parentdd51b1fdc89b556b280bd6dcabe0b3b13d0260f6 (diff)
downloadgroff-git-b2157f22b5b2a3abb8f5a972833e9335752cb09b.tar.gz
[tests]: Avoid failures when $GROFF_ENCODING set.
* src/roff/groff/tests/ab_works.sh: * src/roff/groff/tests/handle_special_input_code_points.sh: * src/roff/groff/tests/initialization_is_quiet.sh: * src/roff/groff/tests/msoquiet_works.sh: * src/roff/groff/tests/soquiet_works.sh: * tmac/tests/an-ext_MR-works.sh: * tmac/tests/an_MR-works.sh: * tmac/tests/an_font-remapping-does-not-affect-titles.sh: Unset $GROFF_ENCODING before running test because preconv(1) confounds these tests. Thanks to Alexis for reporting this problem.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/roff/groff/tests/ab_works.sh3
-rwxr-xr-xsrc/roff/groff/tests/handle_special_input_code_points.sh3
-rwxr-xr-xsrc/roff/groff/tests/initialization_is_quiet.sh3
-rwxr-xr-xsrc/roff/groff/tests/msoquiet_works.sh3
-rwxr-xr-xsrc/roff/groff/tests/soquiet_works.sh3
5 files changed, 15 insertions, 0 deletions
diff --git a/src/roff/groff/tests/ab_works.sh b/src/roff/groff/tests/ab_works.sh
index a1ff78327..589387dcc 100755
--- a/src/roff/groff/tests/ab_works.sh
+++ b/src/roff/groff/tests/ab_works.sh
@@ -25,6 +25,9 @@ groff="${abs_top_builddir:-.}/test-groff"
# We don't test the X11 devices because groff launches an X client,
# which has to be killed. Using "-z" to avoid this masks the bug.
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
for d in ascii cp1047 dvi html latin1 lbp lj4 pdf ps utf8
do
echo "verifying exit status of .ab request using $d device" >&2
diff --git a/src/roff/groff/tests/handle_special_input_code_points.sh b/src/roff/groff/tests/handle_special_input_code_points.sh
index 5a064a2af..1e4f9a476 100755
--- a/src/roff/groff/tests/handle_special_input_code_points.sh
+++ b/src/roff/groff/tests/handle_special_input_code_points.sh
@@ -22,6 +22,9 @@ groff="${abs_top_builddir:-.}/test-groff"
# Regression-test Savannah #58962.
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
input='.if " "\~" .tm input no-break space matches \\~
.if "­"\%" .tm input soft hyphen matches \\%'
diff --git a/src/roff/groff/tests/initialization_is_quiet.sh b/src/roff/groff/tests/initialization_is_quiet.sh
index c3ca6c081..ee3070bde 100755
--- a/src/roff/groff/tests/initialization_is_quiet.sh
+++ b/src/roff/groff/tests/initialization_is_quiet.sh
@@ -27,6 +27,9 @@ set -e
# groff should start up in any supported locale, in compatibility mode
# or not, without producing diagnostics.
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
for COMPAT in "" -C
do
for LOCALE in cs de en fr it ja sv zh
diff --git a/src/roff/groff/tests/msoquiet_works.sh b/src/roff/groff/tests/msoquiet_works.sh
index c232a1bef..bb86427bd 100755
--- a/src/roff/groff/tests/msoquiet_works.sh
+++ b/src/roff/groff/tests/msoquiet_works.sh
@@ -22,6 +22,9 @@ groff="${abs_top_builddir:-.}/test-groff"
set -e
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
DOC='.msoquiet nonexistent'
OUTPUT=$(echo "$DOC" | "$groff" -Tascii 2>&1)
diff --git a/src/roff/groff/tests/soquiet_works.sh b/src/roff/groff/tests/soquiet_works.sh
index 8e8d71e71..50112cfdc 100755
--- a/src/roff/groff/tests/soquiet_works.sh
+++ b/src/roff/groff/tests/soquiet_works.sh
@@ -22,6 +22,9 @@ groff="${abs_top_builddir:-.}/test-groff"
set -e
+# Keep preconv from being run.
+unset GROFF_ENCODING
+
DOC='.soquiet nonexistent'
OUTPUT=$(echo "$DOC" | "$groff" -Tascii 2>&1)