X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F11-good-use.t;h=828b93362a7b732bf2451c8dfaaca487cba74aea;hb=ea6d668ecc82cbd3be1f1beb8cc5e9599f3fae10;hp=f1576117cadd5329416434e2d643f3036cca3eb2;hpb=c579771bace4977e6f2c26a5e5e29740a1aa4553;p=perl%2Fmodules%2Findirect.git diff --git a/t/11-good-use.t b/t/11-good-use.t index f157611..828b933 100644 --- a/t/11-good-use.t +++ b/t/11-good-use.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) { 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;