summaryrefslogtreecommitdiff
path: root/ext/B/t/optree_specials.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-06-18 11:38:24 +0000
committerNicholas Clark <nick@ccl4.org>2004-06-18 11:38:24 +0000
commit9cd8f8571248133e4de95e0188070c0cef2693b6 (patch)
tree03b7dd99fe07a313b36aada075d807f4f555adca /ext/B/t/optree_specials.t
parent2d3cf3ee0325fce8b6dc25a062192e5963aa7940 (diff)
downloadperl-9cd8f8571248133e4de95e0188070c0cef2693b6.tar.gz
If we don't build B, we should skip all its tests.
p4raw-id: //depot/perl@22951
Diffstat (limited to 'ext/B/t/optree_specials.t')
-rw-r--r--ext/B/t/optree_specials.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/B/t/optree_specials.t b/ext/B/t/optree_specials.t
index 72fff6688e..75d2a8ab1a 100644
--- a/ext/B/t/optree_specials.t
+++ b/ext/B/t/optree_specials.t
@@ -3,6 +3,11 @@
BEGIN {
chdir 't';
@INC = ('../lib', '../ext/B/t');
+ require Config;
+ if (($Config::Config{'extensions'} !~ /\bB\b/) ){
+ print "1..0 # Skip -- Perl configured without B module\n";
+ exit 0;
+ }
require './test.pl';
}