my $ldlibpth = $ENV{$ld_name};
local %ENV;
+ $ENV{$ld_name} = $ldlibpth if defined $ldlibpth;
$ENV{SystemRoot} = $SystemRoot if $^O eq 'MSWin32' and defined $SystemRoot;
$ENV{PATH} = $PATH if $^O eq 'cygwin' and defined $PATH;
- $ENV{$ld_name} = $ldlibpth if $^O eq 'android' and defined $ldlibpth;
system { $^X } $^X, '-T', map("-I$_", @INC), '-e', $code;
}
use VPIT::TestHelpers;
-use Test::More tests => 4;
+use Test::More tests => 5;
use Config;
use File::Temp;
my %expected_vars = (
'MSWin32' => [ qw<SystemRoot> ],
- 'android' => [ $ld_path ],
+ 'android' => [ ],
'cygwin' => [ qw<PATH> ],
+ 'darwin' => [ ],
'linux' => [ ],
);
+push @$_, $ld_path for values %expected_vars;
my @all_vars = do {
my %uniq;
__CF_USER_TEXT_ENCODING
>;
-for my $os (qw<MSWin32 android cygwin linux>) {
+for my $os (qw<MSWin32 android darwin cygwin linux>) {
1 while unlink $filename;
local $^O = $os;