X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F30-run_perl.t;h=216519706e134bca5ba807614a005c140dc974ad;hb=3c878c7cab4d3a227bd77d1fe1fbdec19b2af8ce;hp=b71f7be0b592cacd2540bfa5e1917030fdf1a21e;hpb=ca9da898bbed123e1c3c95814673315cfc125187;p=perl%2Fmodules%2FVPIT-TestHelpers.git diff --git a/t/30-run_perl.t b/t/30-run_perl.t index b71f7be..2165197 100644 --- a/t/30-run_perl.t +++ b/t/30-run_perl.t @@ -5,23 +5,27 @@ use warnings; use VPIT::TestHelpers; -use Test::More tests => 4; +use Test::More tests => 5; use Config; use File::Temp; my $filename = '/tmp/run_perl_test'; +my $guard = VPIT::TestHelpers::Guard->new(sub { unlink $filename }); + my $code = "open my \$fh, q[>], q[$filename] or die \$!; for my \$key (sort keys %ENV) { print \$fh qq[\$key:\$ENV{\$key}\n] } close \$fh"; my $ld_path = $Config::Config{ldlibpthname}; my %expected_vars = ( 'MSWin32' => [ qw ], - 'android' => [ $ld_path ], + 'android' => [ ], 'cygwin' => [ qw ], + 'darwin' => [ ], 'linux' => [ ], ); +push @$_, $ld_path for values %expected_vars; my @all_vars = do { my %uniq; @@ -35,7 +39,7 @@ my @ignored_vars = qw< __CF_USER_TEXT_ENCODING >; -for my $os (qw) { +for my $os (qw) { 1 while unlink $filename; local $^O = $os;