test_requires 'Test::More' => '0.94';
test_requires 'DBI' => '1.56';
test_requires 'DBD::SQLite' => '1.12';
-test_requires 'File::Path' => 0;
+test_requires 'File::Path' => '2.07';
test_requires 'IPC::Open3' => 0;
test_requires 'Test::Exception';
if ($self->dynamic) { # load the class too
# kill redefined warnings
+ my $warn_handler = $SIG{__WARN__} || sub { warn @_ };
local $SIG{__WARN__} = sub {
- warn @_ unless $_[0] =~ /^Subroutine \S+ redefined/;
+ $warn_handler->(@_)
+ unless $_[0] =~ /^Subroutine \S+ redefined/;
};
do $real_inc_path;
die $@ if $@;
new name of the Result.
EOF
# kill redefined warnings
+ my $warn_handler = $SIG{__WARN__} || sub { warn @_ };
local $SIG{__WARN__} = sub {
- warn @_ unless $_[0] =~ /^Subroutine \S+ redefined/;
+ $warn_handler->(@_)
+ unless $_[0] =~ /^Subroutine \S+ redefined/;
};
my $code = do {
local ($/, @ARGV) = (undef, $old_real_inc_path); <>
delete $INC{ $class_path };
# kill redefined warnings
+ my $warn_handler = $SIG{__WARN__} || sub { warn @_ };
local $SIG{__WARN__} = sub {
- warn @_ unless $_[0] =~ /^Subroutine \S+ redefined/;
+ $warn_handler->(@_)
+ unless $_[0] =~ /^Subroutine \S+ redefined/;
};
-
eval "require $class;";
}