]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/20-bad-no.t
Show more information when we couldn't run the tests data files
[perl/modules/indirect.git] / t / 20-bad-no.t
index 45170db05af7e97b9fde013722495966ce3b2627..0980b1fdabca524b181c420f024c4befc567738b 100644 (file)
@@ -20,11 +20,12 @@ use IPC::Cmd qw/run/;
           '-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;