X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F21-bad-use.t;h=5993d246d55e1cd214f009e2742d1229eb56c042;hp=1499b2bf40147e571e7898e303a4edfea4c41869;hb=1d3c3341b0d1f0192c3189d47a5b8bc78176e9db;hpb=1a28b9e5abd56be968ae09e9d45327632f1a28c8 diff --git a/t/21-bad-use.t b/t/21-bad-use.t index 1499b2b..5993d24 100644 --- a/t/21-bad-use.t +++ b/t/21-bad-use.t @@ -3,12 +3,9 @@ use strict; use warnings; -my $total; -BEGIN { - $total = 28; -} +my $total = 28; -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/bad.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;