This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't run locale test if -DNO_LOCALE
[perl5.git] / t / pragma / locale.t
index 4e61977..298e5ba 100755 (executable)
@@ -3,6 +3,11 @@
 BEGIN {
     chdir 't' if -d 't';
     @INC = '../lib';
+    require Config; import Config;
+    if ($Config{ccflags} =~ /\bD?NO_LOCALE\b/) {
+       print "1..0\n";
+       exit;
+    }
 }
 
 use strict;