diff options
author | Marcus Holland-Moritz <mhx-perl@gmx.net> | 2004-08-30 18:34:58 +0000 |
---|---|---|
committer | Marcus Holland-Moritz <mhx-perl@gmx.net> | 2004-08-30 18:34:58 +0000 |
commit | af3f5016d7b1b8e62e6c41ccf1d2f00957b261d2 (patch) | |
tree | fa2f8380a6bf944f9af4d0ef8a0ee6bee9aeae55 /lib/Dumpvalue.t | |
parent | 4543415b4bf727b6d2b807b141805b40a67913b8 (diff) | |
download | perl-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.t | 5 |
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' ); } |