Fix skipping of a Dumpvalue test when configured without Devel::Peek.
Marcus Holland-Moritz [Mon, 30 Aug 2004 18:34:58 +0000 (18:34 +0000)]
p4raw-id: //depot/perl@23245

lib/Dumpvalue.t

index b22b86d..8eb70a3 100644 (file)
@@ -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' );
 }