tests: store temp configs in /tmp/

This commit is contained in:
Michael Stapelberg 2011-11-16 21:41:45 +00:00
parent 3665f3e755
commit 33ee4679e7
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ sub launch_with_config {
$tmp_socket_path = File::Temp::tempnam('/tmp', 'i3-test-socket-'); $tmp_socket_path = File::Temp::tempnam('/tmp', 'i3-test-socket-');
} }
my ($fh, $tmpfile) = tempfile('i3-test-config-XXXXX', UNLINK => 1); my ($fh, $tmpfile) = tempfile('/tmp/i3-test-config-XXXXX', UNLINK => 1);
say $fh $config; say $fh $config;
say $fh "ipc-socket $tmp_socket_path" unless $dont_add_socket_path; say $fh "ipc-socket $tmp_socket_path" unless $dont_add_socket_path;
close($fh); close($fh);