X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-good-no.t;h=71d5668ba4f3a95ceff5564e1843d40be29da251;hb=1d3c3341b0d1f0192c3189d47a5b8bc78176e9db;hp=37514ddc854ad774433fedb8d3049c52de6c317e;hpb=79fe38872567977419089da38eac9406bf2d4afa;p=perl%2Fmodules%2Findirect.git diff --git a/t/10-good-no.t b/t/10-good-no.t index 37514dd..71d5668 100644 --- a/t/10-good-no.t +++ b/t/10-good-no.t @@ -3,12 +3,9 @@ use strict; use warnings; -my $total; -BEGIN { - $total = 32; -} +my $total = 32; -use Test::More tests => $total + 1; +use Test::More; use IPC::Cmd qw/run/; @@ -20,11 +17,16 @@ use IPC::Cmd qw/run/; '-c', 't/data/good.d' ]; + +plan skip_all => "Couldn't capture buffers" if $success and not defined $stderr; +plan tests => $total + 1; + +$stderr = join '', @$stderr; unless ($success) { - $stderr = pop @$stderr if ref $stderr eq 'ARRAY'; - BAIL_OUT("Failed to execute data file (error $err_code) : $stderr"); + diag $stderr; + diag "Failed to execute data file (error $err_code)"; + fail "Couldn't run test $_" for 1 .. $total + 1; } -$stderr = join "\n", @$stderr if ref $stderr eq 'ARRAY'; my %fail; my $extra_fail = 0;