]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/10-good-no.t
Add PERL5OPT to the flags passed to the forked perls
[perl/modules/indirect.git] / t / 10-good-no.t
index 71d5668ba4f3a95ceff5564e1843d40be29da251..51c3d8ffdaf0a00d0b1a6cf654312513ba300b77 100644 (file)
@@ -13,6 +13,7 @@ use IPC::Cmd qw/run/;
  = run command => [
           $^X,
           map('-I' . $_, @INC),
+          $ENV{PERL5OPT} || '',
           '-M-indirect',
           '-c',
           't/data/good.d'
@@ -26,6 +27,7 @@ unless ($success) {
  diag $stderr;
  diag "Failed to execute data file (error $err_code)";
  fail "Couldn't run test $_" for 1 .. $total + 1;
+ exit $total + 1;
 }
 
 my %fail;