test/lib_server_accept.rb in kgio-2.8.0.2.g30c1 vs test/lib_server_accept.rb in kgio-2.8.1
- old
+ new
@@ -1,14 +1,16 @@
require 'test/unit'
require 'fcntl'
require 'io/nonblock'
+require 'fileutils'
$-w = true
require 'kgio'
module LibServerAccept
def teardown
@srv.close unless @srv.closed?
+ FileUtils.remove_entry_secure(@tmpdir) if defined?(@tmpdir)
Kgio.accept_cloexec = true
Kgio.accept_nonblock = false
end
def test_tryaccept_success