]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - t/31-threads-teardown.t
Fix test failures with Strawberry Perl 5.12
[perl/modules/Lexical-Types.git] / t / 31-threads-teardown.t
index 632293b6373a5057c3e609da3e8e51a720686a62..2354e608f2c0bd834e3b80f34d644615ec339e5f 100644 (file)
@@ -30,7 +30,10 @@ BEGIN {
 sub run_perl {
  my $code = shift;
 
+ my $SystemRoot   = $ENV{SystemRoot};
  local %ENV;
+ $ENV{SystemRoot} = $SystemRoot if $^O eq 'MSWin32' and defined $SystemRoot;
+
  system { $^X } $^X, '-T', map("-I$_", @INC), '-e', $code;
 }