From: Karen Etheridge Date: Sun, 29 Mar 2015 03:59:03 +0000 (-0700) Subject: skip this test if Devel::CheckBin is not installed (RT#103165) X-Git-Tag: v0.14~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b099984f59b3cceee86dcbe3e373141f4f28f864;p=p5sagit%2FSub-Name.git skip this test if Devel::CheckBin is not installed (RT#103165) --- diff --git a/dist.ini b/dist.ini index 522eb90..21e2a9f 100644 --- a/dist.ini +++ b/dist.ini @@ -12,5 +12,6 @@ Test::MinimumVersion.max_target_perl = 5.006 [Prereqs / TestSuggests] B::C = 1.48 +Devel::CheckBin = 0 ; authordep Pod::Weaver::Section::Contributors = 0.008 diff --git a/t/RT96893_perlcc.t b/t/RT96893_perlcc.t index 3adba98..1c5b3db 100644 --- a/t/RT96893_perlcc.t +++ b/t/RT96893_perlcc.t @@ -9,8 +9,10 @@ plan skip_all => 'B::C required for testing perlcc -O3' plan skip_all => "B::C is too old (require 1.48, have $B::C::VERSION)" unless eval { B::C->VERSION('1.48') }; -use Devel::CheckBin; -plan skip_all => 'perlcc required' unless can_run('perlcc'); +plan skip_all => 'Devel::CheckBin required for looking for a perlcc executable' + unless eval 'require Devel::CheckBin'; + +plan skip_all => 'perlcc required' unless Devel::CheckBin::can_run('perlcc'); plan tests => 1;