X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=t%2F50-external.t;h=5d3d37564b0e20987e51a429e9ab1d985c495c68;hp=2b318297eb101b66df6fe530955cd1a647801b37;hb=eab9532b534e1c2efca5410ae4502af7ce43f941;hpb=4b4db54a0b823391ba82d3c9f4d6809601595d94 diff --git a/t/50-external.t b/t/50-external.t index 2b31829..5d3d375 100644 --- a/t/50-external.t +++ b/t/50-external.t @@ -10,9 +10,10 @@ BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} } 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; }