X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F20-bad-no.t;h=fbfceaf3ead8e44091d57ca407b0dc093c19546c;hp=f7acd5de45acfccf3b0883280b4ba4591e3bf1b7;hb=7f756d0f409eb87eb7900dafdb81428e4367021b;hpb=ea6d668ecc82cbd3be1f1beb8cc5e9599f3fae10 diff --git a/t/20-bad-no.t b/t/20-bad-no.t index f7acd5d..fbfceaf 100644 --- a/t/20-bad-no.t +++ b/t/20-bad-no.t @@ -13,6 +13,7 @@ use IPC::Cmd qw/run/; = run command => [ $^X, map('-I' . $_, @INC), + $ENV{PERL5OPT} || '', '-M-indirect', '-c', 't/data/bad.d' @@ -21,7 +22,7 @@ use IPC::Cmd qw/run/; plan skip_all => "Couldn't capture buffers" if $success and not defined $stderr; plan tests => $total + 1; -$stderr = join '', @$stderr; +$stderr = join '', @{$stderr || []}; unless ($success) { diag $stderr; diag "Failed to execute data file (error $err_code)";