summaryrefslogtreecommitdiff
path: root/ext/re
diff options
context:
space:
mode:
Diffstat (limited to 'ext/re')
-rw-r--r--ext/re/t/re_funcs_u.t9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/re/t/re_funcs_u.t b/ext/re/t/re_funcs_u.t
index 781ffc9706..70820df3c3 100644
--- a/ext/re/t/re_funcs_u.t
+++ b/ext/re/t/re_funcs_u.t
@@ -6,7 +6,8 @@ BEGIN {
print "1..0 # Skip -- Perl configured without re module\n";
exit 0;
}
- require 'test.pl'; # For watchdog
+ require 'test.pl'; # For watchdog
+ require 'loc_tools.pl'; # To see if platform has locales
}
use strict;
@@ -92,8 +93,7 @@ if ('1234'=~/(?:(?<A>\d)|(?<C>!))(?<B>\d)(?<A>\d)(?<B>\d)/){
}
SKIP: {
- skip_if_miniperl("no dynamic loading on miniperl, no POSIX", 3);
- skip 'No locale testing without d_setlocale', 3 if(!$Config::Config{d_setlocale});
+ skip 'No locales available', 3 unless locales_enabled('LC_CTYPE');
require POSIX;
my $current_locale = POSIX::setlocale( &POSIX::LC_CTYPE, 'de_DE.ISO-8859-1' );
if ( !$current_locale || $current_locale ne 'de_DE.ISO-8859-1' ) {
@@ -109,8 +109,7 @@ if ('1234'=~/(?:(?<A>\d)|(?<C>!))(?<B>\d)(?<A>\d)(?<B>\d)/){
}
SKIP: {
- skip_if_miniperl("no dynamic loading on miniperl, no POSIX", 3);
- skip 'No locale testing without d_setlocale', 3 if(!$Config::Config{d_setlocale});
+ skip 'No locales available', 3 unless locales_enabled('LC_CTYPE');
require POSIX;
my $current_locale = POSIX::setlocale( &POSIX::LC_CTYPE, 'C' );
if ( !$current_locale || $current_locale ne 'C' ) {