diff options
| -rw-r--r-- | test/unix.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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 |
