]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: env-S.pl: unset cygwin hardwired env vars
authorPádraig Brady <P@draigBrady.com>
Tue, 12 Apr 2022 11:50:40 +0000 (12:50 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 12 Apr 2022 23:36:25 +0000 (00:36 +0100)
* tests/misc/env-S.pl: Unset SYSTEMROOT and WINDIR.

tests/misc/env-S.pl

index 67d4037cbb1a73dc18eef29daf121243f9b8c25c..b11836d29684a1dd2f800e7586b90f06dcf6879b 100755 (executable)
@@ -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 =
     (