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/;
'-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;
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/;
'-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;
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/;
'-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;
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/;
'-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;
use strict;
use warnings;
-my $total;
-BEGIN {
- $total = 20;
-}
-
-use Test::More tests => 1;
+use Test::More;
use IPC::Cmd qw/run/;
't/data/bad.d'
];
+plan skip_all => "Couldn't capture buffers" if $success and not defined $stderr;
+plan tests => 1;
+
$stderr = join '', @$stderr;
ok(!$success && $err_code && $stderr =~ /^Indirect\s+call\s+of\s+method\s+"new"\s+on\s+object\s+"Hlagh1"/mg, 'croak when :fatal is specified');
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/;
'-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;