X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F10-good-no.t;h=71d5668ba4f3a95ceff5564e1843d40be29da251;hp=ac16d4630a6b844c0c4f048862117bb07aa2d606;hb=1d3c3341b0d1f0192c3189d47a5b8bc78176e9db;hpb=1a28b9e5abd56be968ae09e9d45327632f1a28c8 diff --git a/t/10-good-no.t b/t/10-good-no.t index ac16d46..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,6 +17,10 @@ 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;