From: Pádraig Brady
Date: Mon, 11 Apr 2022 13:17:59 +0000 (+0100) Subject: tests: dircolors.pl: avoid false failure with TERM=dumb X-Git-Tag: v9.1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e43099f6e95087fa375d8e0b81d6e97dcb1936b4;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/Coreutils.pm b/tests/Coreutils.pm index fad7ab9d26..e2c53923a0 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)