backport B to work on 5.8.x, so that a single version of the source
[p5sagit/p5-mst-13.2.git] / ext / B / t / asmdata.t
index 5730cca..b787ee9 100644 (file)
@@ -3,6 +3,11 @@
 BEGIN {
     chdir '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 => 13;