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=4168177ad46806cfb9e0cdb522aed997215cf8b2;hpb=d237f88f7fb8be8d6836157872d5bf2b9ba02beb 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; }