tests: make sure to leave no tempfiles behind

This commit is contained in:
Michael Stapelberg
2011-09-24 16:28:21 +01:00
parent 10a9d2a439
commit 1eb011aae1
4 changed files with 8 additions and 4 deletions

View File

@ -134,7 +134,7 @@ sub take_job {
my $dont_start = (slurp($test) =~ /# !NO_I3_INSTANCE!/);
my $logpath = "$outdir/i3-log-for-" . basename($test);
my ($fh, $tmpfile) = tempfile();
my ($fh, $tmpfile) = tempfile('i3-run-cfg.XXXXXX', UNLINK => 1);
say $fh $config;
say $fh "ipc-socket /tmp/nested-$display";
close($fh);