Skip test if Data::Dumper not built
authorNicholas Clark <nick@ccl4.org>
Tue, 22 Jun 2004 09:56:59 +0000 (09:56 +0000)
committerNicholas Clark <nick@ccl4.org>
Tue, 22 Jun 2004 09:56:59 +0000 (09:56 +0000)
p4raw-id: //depot/perl@22966

lib/Tie/RefHash.t

index 55fde14..a855446 100644 (file)
@@ -13,6 +13,11 @@ BEGIN {
     chdir 't' if -d 't';
     @INC = '.'; 
     push @INC, '../lib';
+    require Config;
+    if (($Config::Config{'extensions'} !~ /\bData::Dumper\b/) ){
+       print "1..0 # Skip -- Perl configured without Data::Dumper module\n";
+       exit 0;
+    }
 }    
 
 use strict;