'-c',
't/data/good.d'
];
+$stderr = join '', @$stderr;
unless ($success) {
- $stderr = pop @$stderr if ref $stderr eq 'ARRAY';
- BAIL_OUT("Failed to execute data file (error $err_code) : $stderr");
+ diag $stderr;
+ diag "Failed to execute data file (error $err_code)";
+ fail "Couldn't run test $_" for 1 .. $total + 1;
}
-$stderr = join "\n", @$stderr if ref $stderr eq 'ARRAY';
my %fail;
my $extra_fail = 0;
'-c',
't/data/good.d'
];
+$stderr = join '', @$stderr;
unless ($success) {
- $stderr = pop @$stderr if ref $stderr eq 'ARRAY';
- BAIL_OUT("Failed to execute data file (error $err_code) : $stderr");
+ diag $stderr;
+ diag "Failed to execute data file (error $err_code)";
+ fail "Couldn't run test $_" for 1 .. $total + 1;
}
-$stderr = join "\n", @$stderr if ref $stderr eq 'ARRAY';
my %fail;
my $extra_fail = 0;
'-c',
't/data/bad.d'
];
+$stderr = join '', @$stderr;
unless ($success) {
- $stderr = pop @$stderr if ref $stderr eq 'ARRAY';
- BAIL_OUT("Failed to execute data file (error $err_code) : $stderr");
+ diag $stderr;
+ diag "Failed to execute data file (error $err_code)";
+ fail "Couldn't run test $_" for 1 .. $total + 1;
}
-$stderr = join "\n", @$stderr if ref $stderr eq 'ARRAY';
my %fail = map { $_ => 1 } 1 .. $total;
my $extra_fail = 0;
'-c',
't/data/bad.d'
];
+$stderr = join '', @$stderr;
unless ($success) {
- $stderr = pop @$stderr if ref $stderr eq 'ARRAY';
- BAIL_OUT("Failed to execute data file (error $err_code) : $stderr");
+ diag $stderr;
+ diag "Failed to execute data file (error $err_code)";
+ fail "Couldn't run test $_" for 1 .. $total + 1;
}
-$stderr = join "\n", @$stderr if ref $stderr eq 'ARRAY';
my %fail;
my $extra_fail = 0;
't/data/bad.d'
];
-$stderr = join "\n", @$stderr if ref $stderr eq 'ARRAY';
+$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');
'-c',
't/data/mixed.d'
];
+$stderr = join '', @$stderr;
unless ($success) {
- $stderr = pop @$stderr if ref $stderr eq 'ARRAY';
- BAIL_OUT("Failed to execute data file (error $err_code) : $stderr");
+ diag $stderr;
+ diag "Failed to execute data file (error $err_code)";
+ fail "Couldn't run test $_" for 1 .. $total + 1;
}
-$stderr = join "\n", @$stderr if ref $stderr eq 'ARRAY';
my %fail = map { $_ => 1 } 2, 3, 5, 7;
my %failed;