diff options
| author | Tomoyuki Sahara <[email protected]> | 2015-05-20 11:38:03 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2015-05-20 11:38:03 +0900 |
| commit | dacb8b626b293670567bd3cf7870c3e3c4147a08 (patch) | |
| tree | c9c62a601f17ccb252482e6623f08dda022216a9 | |
| parent | 1629e860634ea4fb56644d5dace0ee55e59c3ce4 (diff) | |
| download | mruby-dacb8b626b293670567bd3cf7870c3e3c4147a08.tar.gz mruby-dacb8b626b293670567bd3cf7870c3e3c4147a08.zip | |
failed to remove temporary files!
| -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 |
