X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=blobdiff_plain;f=t%2F31-threads-teardown.t;h=e636acde54985c275144c8563de2278ff29e6c98;hp=c15ebec106664732e45bbbd9836b68da01936e87;hb=012106b3a55d19d29e462556e2b5a62529275e59;hpb=769ddb7f96f8f50f1f0d40459501e00672a31e1b diff --git a/t/31-threads-teardown.t b/t/31-threads-teardown.t index c15ebec..e636acd 100644 --- a/t/31-threads-teardown.t +++ b/t/31-threads-teardown.t @@ -11,9 +11,10 @@ use Test::More tests => 1; sub run_perl { my $code = shift; - my $SystemRoot = $ENV{SystemRoot}; + my ($SystemRoot, $PATH) = @ENV{qw}; local %ENV; $ENV{SystemRoot} = $SystemRoot if $^O eq 'MSWin32' and defined $SystemRoot; + $ENV{PATH} = $PATH if $^O eq 'cygwin' and defined $PATH; system { $^X } $^X, '-T', map("-I$_", @INC), '-e', $code; }