summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-03-12 18:08:24 +0000
committerNicholas Clark <nick@ccl4.org>2011-03-12 18:08:24 +0000
commit2929db82f967aeec892b330c14b41874f1d2a329 (patch)
treeeedc63d0cd94ec3fc6c21e5339ce1ae7638b8a54 /t/test.pl
parent273be65c18c94ccde36c8a6d14c992ff7434681a (diff)
downloadperl-2929db82f967aeec892b330c14b41874f1d2a329.tar.gz
skip_all_without_dynamic_extension() should accepted names containing ::s
Whilst the package separator is a double colon, config.sh ends up using a / for the package separator, reflecting how, historically, extensions were laid out in nested directories beneath ext/. The layout has changed, but the convention in the config.sh entries, and hence the %Config::Config values, remains the same. Hence skip_all_without_dynamic_extension() needs to convert passed-in ::s to / before performing a lookup.
Diffstat (limited to 't/test.pl')
-rw-r--r--t/test.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/test.pl b/t/test.pl
index 21bf1d2cdb..d83f69bc32 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -129,6 +129,7 @@ sub skip_all_without_dynamic_extension {
warn "test.pl had problems loading Config: $@";
return;
}
+ $extension =~ s!::!/!g;
return if ($Config::Config{extensions} =~ /\b$extension\b/);
skip_all("$extension was not built");
}