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

tests: env-s.pl: avoid spurious failure on OS X

* tests/misc/env-S.pl: The __CF_USER_TEXT_ENCODING envvar
would cause many of these sub-tests to fail. Ignore it.
This commit is contained in:
Jim Meyering
2021-09-19 22:44:25 -07:00
parent 4382207c1d
commit 7b0db3c69c

View File

@@ -30,6 +30,12 @@ $env = $1;
# Turn off localization of executable's output.
@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
# 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";
my @Tests =
(
# Test combination of -S and regular arguments