make new Storable tests forgiving of places where not built
[p5sagit/p5-mst-13.2.git] / t / lib / st-06compat.t
index 23245d5..932dbac 100644 (file)
 #
 
 BEGIN {
-    chdir('t') if -d 't';
+    chdir('t') if -d 't';    
+    require Config; import Config;
+    if ($Config{'extensions'} !~ /\bStorable\b/) {
+        print "1..0 # Skip: Storable was not built\n";
+        exit 0;
+    }
     unshift @INC, '../lib';
     require 'lib/st-dump.pl';
 }