X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F41-threads-teardown.t;h=b2186e8ee64b216ad231ec01e1e59deae1adcd4b;hp=d8a6fc92b916ae1ada2fde01d2112b69125fc9e4;hb=ca6c9d6f907915ef07a55bd86e0b1333cc8ac649;hpb=70c031d6dea1becbc2bdba6e26b57366ea6dc607 diff --git a/t/41-threads-teardown.t b/t/41-threads-teardown.t index d8a6fc9..b2186e8 100644 --- a/t/41-threads-teardown.t +++ b/t/41-threads-teardown.t @@ -31,7 +31,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; }