From: Vincent Pit Date: Wed, 11 Mar 2015 16:10:17 +0000 (-0300) Subject: Unlink the temporary file when we are done X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=3c878c7cab4d3a227bd77d1fe1fbdec19b2af8ce;p=perl%2Fmodules%2FVPIT-TestHelpers.git Unlink the temporary file when we are done --- 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};