This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Bump $feature::VERSION
[perl5.git] / lib / Dumpvalue.t
index 0158304..8eb70a3 100644 (file)
@@ -8,7 +8,7 @@ BEGIN {
            exit 0;
        }
        require Config;
-       if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){
+       if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){
            print "1..0 # Skip -- Perl configured without List::Util module\n";
            exit 0;
        }
@@ -205,7 +205,10 @@ is( $out->read, "\$_<foo = 1\n", 'dumped glob for $_<foo correctly (DB)' );
 
 # test CvGV name
 SKIP: {
-       skip( 'no Devel::Peek', 1 ) unless use_ok( 'Devel::Peek' );
+       if (" $Config::Config{'extensions'} " !~ m[ Devel/Peek ]) {
+           skip( 'no Devel::Peek', 2 );
+       }
+       use_ok( 'Devel::Peek' );
        is( $d->CvGV_name(\&TieOut::read), 'TieOut::read', 'CvGV_name found sub' );
 }