]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/11-good-use.t
Better logic for finding oo and om in ck_entersub
[perl/modules/indirect.git] / t / 11-good-use.t
index 8cf224adefb128beca92911f5346ecfd1982030b..6f0025426fe54b10aa5935397eff0eaba92d5954 100644 (file)
@@ -13,6 +13,7 @@ use IPC::Cmd qw/run/;
  = run command => [
           $^X,
           map('-I' . $_, @INC),
+          $ENV{PERL5OPT} || '',
           '-Mindirect',
           '-c',
           't/data/good.d'
@@ -21,11 +22,12 @@ use IPC::Cmd qw/run/;
 plan skip_all => "Couldn't capture buffers" if $success and not defined $stderr;
 plan tests => $total + 1;
 
-$stderr = join '', @$stderr;
+$stderr = join '', @{$stderr || []};
 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;