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