From: Nicholas Clark Date: Fri, 18 Jun 2004 09:43:12 +0000 (+0000) Subject: Unicode::UCD uses Storable, so we can't test if Storable isn't built. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=25a47338fa155bc151c8e5863827e694dd2d036d;p=p5sagit%2Fp5-mst-13.2.git Unicode::UCD uses Storable, so we can't test if Storable isn't built. p4raw-id: //depot/perl@22949 --- diff --git a/lib/Unicode/UCD.t b/lib/Unicode/UCD.t index f0a29ad..a36902c 100644 --- a/lib/Unicode/UCD.t +++ b/lib/Unicode/UCD.t @@ -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;