This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Unicode::UCD uses Storable, so we can't test if Storable isn't built.
[perl5.git] / lib / Unicode / UCD.t
index f0a29ad..a36902c 100644 (file)
@@ -1,3 +1,4 @@
+#!perl -w
 BEGIN {
     if (ord("A") == 193) {
        print "1..0 # Skip: EBCDIC\n";
@@ -6,6 +7,11 @@ BEGIN {
     chdir 't' if -d 't';
     @INC = '../lib';
     @INC = "::lib" if $^O eq 'MacOS'; # module parses @INC itself
+    require Config; import Config;
+    if ($Config{'extensions'} !~ /\bStorable\b/) {
+        print "1..0 # Skip: Storable was not built; Unicode::UCD uses Storable\n";
+        exit 0;
+    }
 }
 
 use strict;