From dacb8b626b293670567bd3cf7870c3e3c4147a08 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Wed, 20 May 2015 11:38:03 +0900 Subject: failed to remove temporary files! --- test/unix.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/unix.rb b/test/unix.rb index 379eb1ec4..88ad17101 100644 --- a/test/unix.rb +++ b/test/unix.rb @@ -1,9 +1,10 @@ def unixserver_test_block - File.unlink SocketTest.tmppath rescue nil + path = SocketTest.tmppath + File.unlink path rescue nil begin - result = yield SocketTest.tmppath + result = yield path ensure - File.unlink SocketTest.tmppath rescue nil + File.unlink path rescue nil end result end -- cgit v1.2.3