failed to remove temporary files!

This commit is contained in:
Tomoyuki Sahara
2015-05-20 11:38:03 +09:00
parent 1629e86063
commit dacb8b626b
+4 -3
View File
@@ -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