summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJess Robinson <castaway@desert-island.me.uk>2013-04-19 12:08:34 +0100
committerBrian Fraser <fraserbn@gmail.com>2014-01-18 12:12:11 -0300
commit7620c90318039d81ec0863a422f249f9fa4a5c05 (patch)
tree50d07e700aed8695eb451fc53801f45eccec39d1
parent7139292da4149c622911fa11dab86ff67b94bce7 (diff)
downloadperl-7620c90318039d81ec0863a422f249f9fa4a5c05.tar.gz
t/run/switches.t: Skip setlocale tests if !d_setlocale
-rw-r--r--t/run/switches.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/run/switches.t b/t/run/switches.t
index 315c3b9f95..a2e4bad47c 100644
--- a/t/run/switches.t
+++ b/t/run/switches.t
@@ -7,6 +7,7 @@
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
+ require Config; import Config;
}
BEGIN { require "./test.pl"; }
@@ -111,6 +112,7 @@ SWTEST
SKIP: {
skip "no POSIX on miniperl", 1, unless $INC{"POSIX.pm"};
+ skip 'No locale testing without d_setlocale', 1 if(!$Config{d_setlocale});
my $tempdir = tempfile;
mkdir $tempdir, 0700 or die "Can't mkdir '$tempdir': $!";