]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/11-good-use.t
Show more information when we couldn't run the tests data files
[perl/modules/indirect.git] / t / 11-good-use.t
index 93b24357b9f34380334201dcd0f404af4c1d31d0..f1576117cadd5329416434e2d643f3036cca3eb2 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;