X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F11-good-use.t;h=8cf224adefb128beca92911f5346ecfd1982030b;hp=f1576117cadd5329416434e2d643f3036cca3eb2;hb=1d3c3341b0d1f0192c3189d47a5b8bc78176e9db;hpb=1a28b9e5abd56be968ae09e9d45327632f1a28c8 diff --git a/t/11-good-use.t b/t/11-good-use.t index f157611..8cf224a 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,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;