7 BEGIN { $count = 1_000 }
10 use Test::Leaner tests => 2 * $count;
12 BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
17 local $SIG{__WARN__} = sub { die @_ };
20 no indirect hook => sub { push @errs, [ @_[0, 1, 3] ] };
24 is $@, '', "didn't croak at run $_";
25 is_deeply \@errs, [ [ 'Wut', 'new', 4 ] ], "got the right data at run $_";