summaryrefslogtreecommitdiff
path: root/t/run
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2014-02-05 07:34:52 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-02-05 23:12:17 -0300
commit46f4bdef6f1ff77b64450b6b423e311c07ca4cb3 (patch)
tree16b6964c2bbfec39442dff54b6984c954d23da90 /t/run
parent4d8be63140ab9b3878f47f1d950070c7cff7cf44 (diff)
downloadperl-46f4bdef6f1ff77b64450b6b423e311c07ca4cb3.tar.gz
Fix more tests to work on systems that don't define LC_ALL and friends
Diffstat (limited to 't/run')
-rw-r--r--t/run/locale.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/run/locale.t b/t/run/locale.t
index fbee2d636c..27535e69b1 100644
--- a/t/run/locale.t
+++ b/t/run/locale.t
@@ -21,7 +21,7 @@ BEGIN {
}
use Config;
my $have_strtod = $Config{d_strtod} eq 'define';
-my @locales = find_locales( [ LC_ALL, LC_CTYPE, LC_NUMERIC ] );
+my @locales = eval { find_locales( [ &LC_ALL, &LC_CTYPE, &LC_NUMERIC ] ) };
skip_all("no locales available") unless @locales;
plan tests => &last;