From: Amitai Schlair Date: Mon, 6 Oct 2014 20:31:52 +0000 (-0400) Subject: simplify IPC::Run check (same behavior) X-Git-Tag: debian/3.20141016~56 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/bb8f15e2a7e55bef6c2e44a0b4a530add030befc?ds=sidebyside simplify IPC::Run check (same behavior) --- diff --git a/t/relativity.t b/t/relativity.t index 300c6e61d..7e1e7049f 100755 --- a/t/relativity.t +++ b/t/relativity.t @@ -2,21 +2,17 @@ use warnings; use strict; -use Cwd qw(getcwd); -use Errno qw(ENOENT); - -BEGIN { - if (!eval q{ +use Test::More; +plan(skip_all => "IPC::Run not available") + unless eval q{ use IPC::Run qw(run); 1; - }) { - eval q{use Test::More skip_all => "IPC::Run not available"}; - } - else { - eval q{use Test::More}; - } - use_ok("IkiWiki"); -} + }; + +use IkiWiki; + +use Cwd qw(getcwd); +use Errno qw(ENOENT); my $PERL5LIB = 'blib/lib:blib/arch'; my $pwd = getcwd();