]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/10-good-no.t
Skip when we couldn't capture buffers
[perl/modules/indirect.git] / t / 10-good-no.t
index ac16d4630a6b844c0c4f048862117bb07aa2d606..71d5668ba4f3a95ceff5564e1843d40be29da251 100644 (file)
@@ -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;