summaryrefslogtreecommitdiff
path: root/ext/B
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-10-20 22:39:36 +0000
committerNicholas Clark <nick@ccl4.org>2004-10-20 22:39:36 +0000
commit7f046282e716820f674dd01c0468a782b741538b (patch)
tree028faa6d3e9a252970ba6e4b2c25fdf14c5218b2 /ext/B
parent34433938114b9a3e6617db3dbecdd8ae1d6979cb (diff)
downloadperl-7f046282e716820f674dd01c0468a782b741538b.tar.gz
Need to skip optree walking tests if perlio not built
p4raw-id: //depot/perl@23395
Diffstat (limited to 'ext/B')
-rw-r--r--ext/B/t/f_map.t4
-rw-r--r--ext/B/t/f_sort.t4
2 files changed, 8 insertions, 0 deletions
diff --git a/ext/B/t/f_map.t b/ext/B/t/f_map.t
index 7d4303fbf0..ff22dde8e3 100644
--- a/ext/B/t/f_map.t
+++ b/ext/B/t/f_map.t
@@ -8,6 +8,10 @@ BEGIN {
print "1..0 # Skip -- Perl configured without B module\n";
exit 0;
}
+ if (!$Config::Config{useperlio}) {
+ print "1..0 # Skip -- need perlio to walk the optree\n";
+ exit 0;
+ }
if ($] < 5.009) {
print "1..0 # Skip -- TODO - provide golden result regexps for 5.8\n";
exit 0;
diff --git a/ext/B/t/f_sort.t b/ext/B/t/f_sort.t
index c6f6bc4958..26dfbe4c54 100644
--- a/ext/B/t/f_sort.t
+++ b/ext/B/t/f_sort.t
@@ -8,6 +8,10 @@ BEGIN {
print "1..0 # Skip -- Perl configured without B module\n";
exit 0;
}
+ if (!$Config::Config{useperlio}) {
+ print "1..0 # Skip -- need perlio to walk the optree\n";
+ exit 0;
+ }
if ($] < 5.009) {
print "1..0 # Skip -- TODO - provide golden result regexps for 5.8\n";
exit 0;