summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2022-04-11 14:17:59 +0100
committerPádraig Brady <P@draigBrady.com>2022-04-11 15:47:16 +0100
commite43099f6e95087fa375d8e0b81d6e97dcb1936b4 (patch)
treea13f9bff31fe58aa9bd666dc8711a27adadae344
parent021fc4fad2cd6712d03af090431dbef353968a30 (diff)
downloadcoreutils-e43099f6e95087fa375d8e0b81d6e97dcb1936b4.tar.gz
tests: dircolors.pl: avoid false failure with TERM=dumb
* tests/Coreutils.pm: Ensure an unset $TERM env var, which is required on perl 5.22.2 on Solaris 11 OpenIndiana at least, where TERM was being reset to 'dumb'. Reported By Bruno Haible.
-rw-r--r--tests/Coreutils.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Coreutils.pm b/tests/Coreutils.pm
index fad7ab9d2..e2c53923a 100644
--- a/tests/Coreutils.pm
+++ b/tests/Coreutils.pm
@@ -42,6 +42,11 @@ my $Global_count = 1;
defined $ENV{DJDIR}
and $ENV{SHELL} = "$ENV{DJDIR}/bin/bash.exe";
+# Perl 5.22.2 was seen to default to TERM=dumb on Solaris 11 OpenIndiana
+# So ensure this variable is unset.
+defined $ENV{TERM}
+ and delete $ENV{TERM};
+
# A file spec: a scalar or a reference to a single-keyed hash
# ================
# 'contents' contents only (file name is derived from test name)