From: Karen Etheridge Date: Thu, 25 Jan 2018 20:55:19 +0000 (-0800) Subject: switch from stringy to block eval, being careful to not be caught by AutoPrereqs X-Git-Tag: v0.24~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=88134f62be38afa2a5bd9eb9cc84634912ce8eab;p=p5sagit%2FSub-Name.git switch from stringy to block eval, being careful to not be caught by AutoPrereqs --- diff --git a/t/RT96893_perlcc.t b/t/RT96893_perlcc.t index db695ed..53bb53a 100644 --- a/t/RT96893_perlcc.t +++ b/t/RT96893_perlcc.t @@ -4,13 +4,13 @@ use warnings; use Test::More; plan skip_all => 'B::C required for testing perlcc -O3' - unless eval "require B::C;"; + unless eval { +require B::C; }; plan skip_all => 'B::C is too old (require 1.48, have ' . ($B::C::VERSION || 'undef') . ')' unless eval { B::C->VERSION('1.48') }; plan skip_all => 'Devel::CheckBin required for looking for a perlcc executable' - unless eval 'require Devel::CheckBin'; + unless eval { +require Devel::CheckBin }; plan skip_all => 'perlcc required' unless Devel::CheckBin::can_run('perlcc');