1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2025-08-07 07:22:55 +03:00

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.
This commit is contained in:
Pádraig Brady
2022-04-11 14:17:59 +01:00
parent 021fc4fad2
commit e43099f6e9

View 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)