X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=blobdiff_plain;f=t%2F31-threads-teardown.t;h=2354e608f2c0bd834e3b80f34d644615ec339e5f;hp=632293b6373a5057c3e609da3e8e51a720686a62;hb=c03d14b5eed6696196ad91bd7a7b3a3bbb1a2b97;hpb=443e2c8cd23ae55797e10bc4d51314d63fb68a4d diff --git a/t/31-threads-teardown.t b/t/31-threads-teardown.t index 632293b..2354e60 100644 --- a/t/31-threads-teardown.t +++ b/t/31-threads-teardown.t @@ -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; }