]> git.vpit.fr Git - perl/modules/VPIT-TestHelpers.git/blobdiff - t/30-run_perl.t
Unlink the temporary file when we are done
[perl/modules/VPIT-TestHelpers.git] / t / 30-run_perl.t
index cd040e133c8938e70fce9f21bbcbc77ea01f0ab5..216519706e134bca5ba807614a005c140dc974ad 100644 (file)
@@ -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};