X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F41-threads-teardown.t;h=9de009fb0ba33b458f07547d858b5a12bb4591e6;hp=42d4ae8e282151cbc4eb40db6c8fea8c24067b99;hb=eab9532b534e1c2efca5410ae4502af7ce43f941;hpb=4b4db54a0b823391ba82d3c9f4d6809601595d94 diff --git a/t/41-threads-teardown.t b/t/41-threads-teardown.t index 42d4ae8..9de009f 100644 --- a/t/41-threads-teardown.t +++ b/t/41-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; }