make new Storable tests forgiving of places where not built
[p5sagit/p5-mst-13.2.git] / t / lib / st-overload.t
index bef265f..6482237 100644 (file)
 
 sub BEGIN {
     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';
 }