X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F30-scope.t;h=0174870ddbdf712bedf5669bf0af6ba36c4ed562;hp=f006f8147a699764b0432e14b764fc2c2d3effaa;hb=1d3c3341b0d1f0192c3189d47a5b8bc78176e9db;hpb=1a28b9e5abd56be968ae09e9d45327632f1a28c8 diff --git a/t/30-scope.t b/t/30-scope.t index f006f81..0174870 100644 --- a/t/30-scope.t +++ b/t/30-scope.t @@ -3,12 +3,9 @@ use strict; use warnings; -my $total; -BEGIN { - $total = 8; -} +my $total = 8; -use Test::More tests => $total + 1; +use Test::More; use IPC::Cmd qw/run/; @@ -19,6 +16,10 @@ use IPC::Cmd qw/run/; '-c', 't/data/mixed.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;