]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: dircolors.pl: avoid false failure with TERM=dumb
authorPádraig Brady <P@draigBrady.com>
Mon, 11 Apr 2022 13:17:59 +0000 (14:17 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 11 Apr 2022 14:47:16 +0000 (15:47 +0100)
* 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.

tests/Coreutils.pm

index fad7ab9d262839eb41f60da0e3996d92edfce47a..e2c53923a05856d313fc65f450908f9ba463aa31 100644 (file)
@@ -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)