From e43099f6e95087fa375d8e0b81d6e97dcb1936b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?=
Date: Mon, 11 Apr 2022 14:17:59 +0100 Subject: [PATCH] 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. --- tests/Coreutils.pm | 5 +++++ 1 file changed, 5 insertions(+) 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)