Commit 85889f6e authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Update to catch up Test::Compile 2.0.0.

parent 9c9c126d
...@@ -8,17 +8,12 @@ use warnings; ...@@ -8,17 +8,12 @@ use warnings;
use English qw(-no_match_vars); use English qw(-no_match_vars);
use Test::More; use Test::More;
eval { BEGIN { eval 'use Test::Compile qw(all_pl_files_ok)'; }
require Test::Compile; unless ($Test::Compile::VERSION) {
Test::Compile->import();
};
if ($EVAL_ERROR) {
my $msg = 'Test::Compile required'; my $msg = 'Test::Compile required';
plan(skip_all => $msg); plan(skip_all => $msg);
} }
#$ENV{PERL5LIB} = $ENV{PERL5LIB} ? "$ENV{PERL5LIB}:src/lib" : "src/lib";
all_pl_files_ok( all_pl_files_ok(
##<po/*.pl>, ##<po/*.pl>,
<src/sbin/*.pl>, <src/sbin/*.pl>,
......
...@@ -8,11 +8,8 @@ use warnings; ...@@ -8,11 +8,8 @@ use warnings;
use English qw(-no_match_vars); use English qw(-no_match_vars);
use Test::More; use Test::More;
eval { BEGIN { eval 'use Test::Compile qw(all_pm_files all_pm_files_ok)'; }
require Test::Compile; unless ($Test::Compile::VERSION) {
Test::Compile->import();
};
if ($EVAL_ERROR) {
my $msg = 'Test::Compile required'; my $msg = 'Test::Compile required';
plan(skip_all => $msg); plan(skip_all => $msg);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment