1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

tests: env-S.pl: unset cygwin hardwired env vars

* tests/misc/env-S.pl: Unset SYSTEMROOT and WINDIR.
This commit is contained in:
Pádraig Brady
2022-04-12 12:50:40 +01:00
parent 028cad9149
commit f98dcbfc1c

View File

@@ -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 =
(