Skip tests that require Data::Dumper if it is not built
[p5sagit/p5-mst-13.2.git] / ext / B / t / terse.t
index b11c873..d8d0529 100644 (file)
@@ -3,6 +3,11 @@
 BEGIN {
        chdir 't' if -d 't';
        @INC = '../lib';
+       require Config;
+       if (($Config::Config{'extensions'} !~ /\bB\b/) ){
+               print "1..0 # Skip -- Perl configured without B module\n";
+               exit 0;
+       }
 }
 
 use Test::More tests => 16;