From: Pádraig Brady Date: Tue, 12 Apr 2022 11:50:40 +0000 (+0100) Subject: tests: env-S.pl: unset cygwin hardwired env vars X-Git-Tag: v9.1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f98dcbfc1c73e3b270224d5c82ff0382c1394519;p=thirdparty%2Fcoreutils.git tests: env-S.pl: unset cygwin hardwired env vars * tests/misc/env-S.pl: Unset SYSTEMROOT and WINDIR. --- diff --git a/tests/misc/env-S.pl b/tests/misc/env-S.pl index 67d4037cbb..b11836d296 100755 --- a/tests/misc/env-S.pl +++ b/tests/misc/env-S.pl @@ -33,8 +33,12 @@ $env = $1; # This envvar is somehow set at least on macOS 11.6, and would # otherwise cause failure of q*, t* and more tests below. Ignore it. my $cf = '__CF_USER_TEXT_ENCODING'; -exists $ENV{$cf} - and $env .= " -u$cf"; +exists $ENV{$cf} and $env .= " -u$cf"; +# Likewise for these Cygwin env vars +my $cf = 'SYSTEMROOT'; +exists $ENV{$cf} and $env .= " -u$cf"; +my $cf = 'WINDIR'; +exists $ENV{$cf} and $env .= " -u$cf"; my @Tests = (