From fc88b648ca5c2ba6c845c357192d7e36f9dedc5c Mon Sep 17 00:00:00 2001 From: Hleb Valoshka <375GNU@Gmail.COM> Date: Sat, 24 Aug 2013 16:50:17 +0300 Subject: Change prefix of temporary sockets to prevent races Note: this is an incomplete fix and the race can still happen. A proper fix would involve using a temporary directory for each test and placing the Unix socket in there. Signed-off-by: Eric Wong --- test/test_unix_connect.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_unix_connect.rb') diff --git a/test/test_unix_connect.rb b/test/test_unix_connect.rb index b85f1f6..007f422 100644 --- a/test/test_unix_connect.rb +++ b/test/test_unix_connect.rb @@ -14,7 +14,7 @@ end class TestKgioUnixConnect < Test::Unit::TestCase def setup - tmp = Tempfile.new('kgio_unix') + tmp = Tempfile.new('kgio_unix_1') @path = tmp.path File.unlink(@path) tmp.close rescue nil -- cgit v1.2.3-24-ge0c7