]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Try to prevent t/50-external.t from crashing on Cygwin
authorVincent Pit <vince@profvince.com>
Wed, 24 Aug 2011 15:29:44 +0000 (17:29 +0200)
committerVincent Pit <vince@profvince.com>
Wed, 24 Aug 2011 15:29:44 +0000 (17:29 +0200)
t/50-external.t

index 2b318297eb101b66df6fe530955cd1a647801b37..0d973e97a8ce2350d04bd2b40886ff655a734f9d 100644 (file)
@@ -12,7 +12,8 @@ sub run_perl {
 
  my $SystemRoot   = $ENV{SystemRoot};
  local %ENV;
- $ENV{SystemRoot} = $SystemRoot if $^O eq 'MSWin32' and defined $SystemRoot;
+ $ENV{SystemRoot} = $SystemRoot if  defined $SystemRoot
+                                and ($^O eq 'MSWin32' or $^O eq 'cygwin');
 
  system { $^X } $^X, '-T', map("-I$_", @INC), '-e', $code;
 }