Unicode::UCD uses Storable, so we can't test if Storable isn't built.
authorNicholas Clark <nick@ccl4.org>
Fri, 18 Jun 2004 09:43:12 +0000 (09:43 +0000)
committerNicholas Clark <nick@ccl4.org>
Fri, 18 Jun 2004 09:43:12 +0000 (09:43 +0000)
p4raw-id: //depot/perl@22949

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;