summaryrefslogtreecommitdiff
path: root/ext/POSIX
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2019-06-08 17:45:24 -0400
committerJames E Keenan <jkeenan@cpan.org>2019-06-08 17:45:24 -0400
commit7948efd4698ec5639b8de124f836d9d3064798cb (patch)
treeaa81677b0a5331350eba313be33906270085e8dd /ext/POSIX
parent7c21f0042bbf5d88b72d07661d64903e627ccf29 (diff)
downloadperl-7948efd4698ec5639b8de124f836d9d3064798cb.tar.gz
Revert "Fix edge case test failure in ext/POSIX/t/mb.t"
This reverts commit 69b89a0f0bb2cbb4c1607e78c3b414bf45244bea. This commit generated two test failures on Linux when perl was built with config_args like these: '-des -Dusedevel -Dcc=clang -Accflags=-Werror=declaration-after-statement -g -fno-omit-frame-pointer -fsanitize=address -fno-common -fsanitize-blacklist=/home/jkeenan/gitwork/perl/asan_ignore -Aldflags=-fsanitize=address' See: https://rt.perl.org/Ticket/Display.html?id=134182#txn-1639258 Reverting from blead; will create branch for testing. Signed-off-by: James E Keenan <jkeenan@cpan.org>
Diffstat (limited to 'ext/POSIX')
-rw-r--r--ext/POSIX/t/mb.t8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/POSIX/t/mb.t b/ext/POSIX/t/mb.t
index c10ea1a01e..053693e611 100644
--- a/ext/POSIX/t/mb.t
+++ b/ext/POSIX/t/mb.t
@@ -34,13 +34,9 @@ SKIP: {
my $utf8_locale = find_utf8_ctype_locale();
skip("no utf8 locale available", 3) unless $utf8_locale;
- # Here we need to influence LC_CTYPE, but it's not enough to just
- # set this because LC_ALL could override it. It's also not enough
- # to delete LC_ALL because it could be used to override other
- # variables such as LANG in the underlying test environment.
- # Continue to set LC_CTYPE just in case...
local $ENV{LC_CTYPE} = $utf8_locale;
- local $ENV{LC_ALL} = $utf8_locale;
+ local $ENV{LC_ALL};
+ delete $ENV{LC_ALL};
fresh_perl_like(
'use POSIX; print &POSIX::MB_CUR_MAX',