X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F41-threads-teardown.t;h=64c23dc249d4f6b2a09aeacf96ed3298a62d8022;hp=42d4ae8e282151cbc4eb40db6c8fea8c24067b99;hb=76861cbb848c770203b09f413c9c65ca58c808c8;hpb=1868a5983f5045def63a5cc7edf41454b407f66c diff --git a/t/41-threads-teardown.t b/t/41-threads-teardown.t index 42d4ae8..64c23dc 100644 --- a/t/41-threads-teardown.t +++ b/t/41-threads-teardown.t @@ -11,16 +11,17 @@ 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; } SKIP: { - skip 'Fails on 5.8.2 and lower' => 1 if "$]" <= 5.008002; + skip 'Fails on 5.8.2 and lower' => 1 if "$]" <= 5.008_002; my $status = run_perl <<' RUN'; my ($code, @expected);