summaryrefslogtreecommitdiff
path: root/lib/Dumpvalue.t
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2004-08-30 18:34:58 +0000
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2004-08-30 18:34:58 +0000
commitaf3f5016d7b1b8e62e6c41ccf1d2f00957b261d2 (patch)
treefa2f8380a6bf944f9af4d0ef8a0ee6bee9aeae55 /lib/Dumpvalue.t
parent4543415b4bf727b6d2b807b141805b40a67913b8 (diff)
downloadperl-af3f5016d7b1b8e62e6c41ccf1d2f00957b261d2.tar.gz
Fix skipping of a Dumpvalue test when configured without Devel::Peek.
p4raw-id: //depot/perl@23245
Diffstat (limited to 'lib/Dumpvalue.t')
-rw-r--r--lib/Dumpvalue.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Dumpvalue.t b/lib/Dumpvalue.t
index b22b86d732..8eb70a34b8 100644
--- a/lib/Dumpvalue.t
+++ b/lib/Dumpvalue.t
@@ -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' );
}