X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F22-bad-fatal.t;h=111524d5a2d1f169b73b7c55b0f43965fdcbb1c9;hp=e374a8df8cd0fcf01fd88d2ab182e83b30c0cbf9;hb=7f756d0f409eb87eb7900dafdb81428e4367021b;hpb=1d3c3341b0d1f0192c3189d47a5b8bc78176e9db diff --git a/t/22-bad-fatal.t b/t/22-bad-fatal.t index e374a8d..111524d 100644 --- a/t/22-bad-fatal.t +++ b/t/22-bad-fatal.t @@ -11,6 +11,7 @@ use IPC::Cmd qw/run/; = run command => [ $^X, map('-I' . $_, @INC), + $ENV{PERL5OPT} || '', '-M-indirect=:fatal', '-c', 't/data/bad.d' @@ -19,5 +20,5 @@ use IPC::Cmd qw/run/; plan skip_all => "Couldn't capture buffers" if $success and not defined $stderr; plan tests => 1; -$stderr = join '', @$stderr; +$stderr = join '', @{$stderr || []}; ok(!$success && $err_code && $stderr =~ /^Indirect\s+call\s+of\s+method\s+"new"\s+on\s+object\s+"Hlagh1"/mg, 'croak when :fatal is specified');