diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-03-12 18:08:24 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-03-12 18:08:24 +0000 |
commit | 2929db82f967aeec892b330c14b41874f1d2a329 (patch) | |
tree | eedc63d0cd94ec3fc6c21e5339ce1ae7638b8a54 /t | |
parent | 273be65c18c94ccde36c8a6d14c992ff7434681a (diff) | |
download | perl-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')
-rw-r--r-- | t/test.pl | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); } |