X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVPIT-TestHelpers.git;a=blobdiff_plain;f=t%2F30-run_perl.t;h=216519706e134bca5ba807614a005c140dc974ad;hp=cd040e133c8938e70fce9f21bbcbc77ea01f0ab5;hb=3c878c7cab4d3a227bd77d1fe1fbdec19b2af8ce;hpb=3d20039698dc108e2111d69c4c73e6fa9cc5c091 diff --git a/t/30-run_perl.t b/t/30-run_perl.t index cd040e1..2165197 100644 --- a/t/30-run_perl.t +++ b/t/30-run_perl.t @@ -12,6 +12,8 @@ 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};