X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fautovivification.git;a=blobdiff_plain;f=t%2F51-threads-teardown.t;h=862717d7dffd7e44278eb7ad96d3e8ee1757f4dc;hp=a688df8e8a92d3a1fc42278755438da9d96eaa85;hb=295b02f98a874580b83b150d67bbe4be1a37f0b1;hpb=bff16fe7ea455b013bb0e681f2852f6c11d72636 diff --git a/t/51-threads-teardown.t b/t/51-threads-teardown.t index a688df8..862717d 100644 --- a/t/51-threads-teardown.t +++ b/t/51-threads-teardown.t @@ -11,9 +11,10 @@ use Test::Leaner 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; }