X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F51-threads-teardown.t;h=164a047d09923d502a1db630c693a41e25db7099;hb=9ef6276ffc1c3943d1b167876079649480efafd7;hp=a688df8e8a92d3a1fc42278755438da9d96eaa85;hpb=bff16fe7ea455b013bb0e681f2852f6c11d72636;p=perl%2Fmodules%2Fautovivification.git diff --git a/t/51-threads-teardown.t b/t/51-threads-teardown.t index a688df8..164a047 100644 --- a/t/51-threads-teardown.t +++ b/t/51-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 = 1 + 2 + 4;