From: Peter Rabbitson Date: Fri, 23 Nov 2012 17:24:29 +0000 (+0100) Subject: Properly skip debugger test when optional deps not available X-Git-Tag: 0.24~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f55a1eccc2dcaf951f09738bfbc6098996d4051;p=p5sagit%2Fnamespace-clean.git Properly skip debugger test when optional deps not available --- diff --git a/Changes b/Changes index 036903a..d797dfb 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ + - Properly skip debugger test when optional deps not available + [0.23] - Rely on B::Hooks::EndOfScope version 0.10 to fix issues with new Module::Runtime versions (>= 0.012) on perl 5.10 due diff --git a/t/07-debugger.t b/t/07-debugger.t index 0d40f0e..9138a5d 100644 --- a/t/07-debugger.t +++ b/t/07-debugger.t @@ -1,6 +1,15 @@ use Test::More; BEGIN { + eval { require Sub::Name } + or plan skip_all => "Test requires Sub::Name"; + + eval { require Sub::Identify } + or plan skip_all => "Test requires Sub::Identify"; +} + + +BEGIN { # shut up the debugger $ENV{PERLDB_OPTS} = 'NonStop';