mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
failed to remove temporary files!
This commit is contained in:
+4
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user