]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/30-scope.t
Skip when we couldn't capture buffers
[perl/modules/indirect.git] / t / 30-scope.t
index f006f8147a699764b0432e14b764fc2c2d3effaa..0174870ddbdf712bedf5669bf0af6ba36c4ed562 100644 (file)
@@ -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;