diff options
author | Amitai Schlair <schmonz-web-ikiwiki@schmonz.com> | 2014-10-06 16:31:52 -0400 |
---|---|---|
committer | Amitai Schlair <schmonz-web-ikiwiki@schmonz.com> | 2014-10-06 16:31:52 -0400 |
commit | bb8f15e2a7e55bef6c2e44a0b4a530add030befc (patch) | |
tree | f0fed91ed4b4e479591ca75de6f2b4f9b06bf045 /t | |
parent | 1a0aa6acbdf0b1f954d394877ae8a9a4d07bcb99 (diff) | |
download | ikiwiki-bb8f15e2a7e55bef6c2e44a0b4a530add030befc.tar ikiwiki-bb8f15e2a7e55bef6c2e44a0b4a530add030befc.tar.gz |
simplify IPC::Run check (same behavior)
Diffstat (limited to 't')
-rwxr-xr-x | t/relativity.t | 22 |
1 files changed, 9 insertions, 13 deletions
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(); |