Close tempfile and unlink it immediately.
commitc3be428c452fd9c91d31b5b7d5b697175b6652df
authorHleb Valoshka <375gnu@gmail.com>
Sat, 7 Sep 2013 20:07:36 +0000 (7 23:07 +0300)
committerEric Wong <normalperson@yhbt.net>
Sat, 7 Sep 2013 20:18:49 +0000 (7 20:18 +0000)
treeec9915870584f14392a613462ba408c024189f39
parentff940137dc5098c9d8094e041e9be053cb3e139f
Close tempfile and unlink it immediately.

When a Tempfile object is garbage collected, or when the Ruby interpreter
exits, its associated temporary file is automatically deleted. This may
lead to race condition when Tempfile is used like in these tests.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
test/test_autopush.rb
test/test_unix_client_read_server_write.rb
test/test_unix_connect.rb
test/test_unix_server.rb
test/test_unix_server_read_client_write.rb