summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2022-04-12 12:50:40 +0100
committerPádraig Brady <P@draigBrady.com>2022-04-13 00:36:25 +0100
commitf98dcbfc1c73e3b270224d5c82ff0382c1394519 (patch)
tree9d68c82a2f2a0e561b2cc912e01b3875c001b3d7
parent028cad9149b2dc6f27ee4d5680582fcdfb3299db (diff)
downloadcoreutils-f98dcbfc1c73e3b270224d5c82ff0382c1394519.tar.gz
tests: env-S.pl: unset cygwin hardwired env vars
* tests/misc/env-S.pl: Unset SYSTEMROOT and WINDIR.
-rwxr-xr-xtests/misc/env-S.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/misc/env-S.pl b/tests/misc/env-S.pl
index 67d4037cb..b11836d29 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 =
(