Skip to content

Commit e011c73

Browse files
khwilliamsonLeont
authored andcommitted
07locale.t: Skip locale testing if no LC_NUMERIC
LC_NUMERIC is required for any meaningful locale testing, so if it isn't available on the platform, or perl is Configured to ignore it, skip those tests
1 parent 217a17a commit e011c73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

t/07locale.t

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ SKIP: {
3131
skip 'No locale testing for Perl < 5.6.0', 7 if $] < 5.006;
3232
skip 'No locale testing without d_setlocale', 7
3333
if(!$Config{d_setlocale});
34+
eval "&POSIX::LC_NUMERIC";
35+
skip 'No locale testing without LC_NUMERIC', 7
36+
if $@ || $Config{ccflags} =~ /-DNO_LOCALE_NUMERIC\b/;
3437

3538
# test locale handling
3639
my $warning = '';

0 commit comments

Comments
 (0)