Don't run locale test if -DNO_LOCALE
Chip Salzenberg [Mon, 17 Feb 1997 22:22:49 +0000 (10:22 +1200)]
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;