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 4b6543d..8eb70a3 100644 (file)
@@ -3,7 +3,15 @@
 BEGIN {
        chdir 't' if -d 't';
        @INC = '../lib';
-       print "1..0 # skip: EBCDIC\n" if ord('A') == 193;
+       if (ord('A') == 193) {
+           print "1..0 # skip: EBCDIC\n";
+           exit 0;
+       }
+       require Config;
+       if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){
+           print "1..0 # Skip -- Perl configured without List::Util module\n";
+           exit 0;
+       }
 }
 
 use vars qw( $foo @bar %baz );
@@ -197,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' );
 }