X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F30-scope.t;h=e4d667c33d6ab5fbdc25956ee81142c575fd3c6c;hb=89371b5b8966e2ea12eb637b830034e1308762b0;hp=0174870ddbdf712bedf5669bf0af6ba36c4ed562;hpb=1d3c3341b0d1f0192c3189d47a5b8bc78176e9db;p=perl%2Fmodules%2Findirect.git diff --git a/t/30-scope.t b/t/30-scope.t index 0174870..e4d667c 100644 --- a/t/30-scope.t +++ b/t/30-scope.t @@ -13,6 +13,7 @@ use IPC::Cmd qw/run/; = run command => [ $^X, map('-I' . $_, @INC), + $ENV{PERL5OPT} || '', '-c', 't/data/mixed.d' ]; @@ -20,11 +21,12 @@ 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)"; fail "Couldn't run test $_" for 1 .. $total + 1; + exit $total + 1; } my %fail = map { $_ => 1 } 2, 3, 5, 7;