diff options
Diffstat (limited to 'cpan')
-rw-r--r-- | cpan/parent/lib/parent.pm | 2 | ||||
-rw-r--r-- | cpan/parent/t/parent-pmc.t | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/cpan/parent/lib/parent.pm b/cpan/parent/lib/parent.pm index b31603b90d..445ed125e9 100644 --- a/cpan/parent/lib/parent.pm +++ b/cpan/parent/lib/parent.pm @@ -1,7 +1,7 @@ package parent; use strict; use vars qw($VERSION); -$VERSION = '0.228'; +$VERSION = '0.232'; sub import { my $class = shift; diff --git a/cpan/parent/t/parent-pmc.t b/cpan/parent/t/parent-pmc.t index 851a438fd3..a8708b42ba 100644 --- a/cpan/parent/t/parent-pmc.t +++ b/cpan/parent/t/parent-pmc.t @@ -13,8 +13,18 @@ use Config; use lib 't/lib'; plan skip_all => ".pmc are only available with 5.6 and later" if $] < 5.006; +my $no_pmc; + +if (Config->can('non_bincompat_options')) { + foreach(Config::non_bincompat_options()) { + if($_ eq "PERL_DISABLE_PMC"){ + $no_pmc = 1; + last; + } + } +}; plan skip_all => ".pmc are disabled in this perl" - if $Config{ccflags} =~ /(?<!\w)-DPERL_DISABLE_PMC\b/; + if $no_pmc; plan tests => 3; use vars qw($got_here); |