X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F10-good-no.t;h=501b27d87421c26fcda5fa3584fcd51f41318643;hp=523fc4ba97e10698a55fa51e458abdaaad47ec90;hb=7f756d0f409eb87eb7900dafdb81428e4367021b;hpb=ea6d668ecc82cbd3be1f1beb8cc5e9599f3fae10 diff --git a/t/10-good-no.t b/t/10-good-no.t index 523fc4b..501b27d 100644 --- a/t/10-good-no.t +++ b/t/10-good-no.t @@ -13,6 +13,7 @@ use IPC::Cmd qw/run/; = run command => [ $^X, map('-I' . $_, @INC), + $ENV{PERL5OPT} || '', '-M-indirect', '-c', 't/data/good.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)";