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