Sha256: db4f0080ca33c42e1c357cba608c9ce0d5c9ab90df7bbfb41b57f0ce7ad6cf73
Contents?: true
Size: 383 Bytes
Versions: 2
Compression:
Stored size: 383 Bytes
Contents
require 'test/unit' require 'io/nonblock' $-w = true require 'kgio' class TestConnectFDLeak < Test::Unit::TestCase def test_unix_socket nr = 0 path = "/non/existent/path" assert(! File.exist?(path), "#{path} should not exist") begin sock = Kgio::UNIXSocket.new(path) rescue Errno::ENOENT end while (nr += 1) < 10000 sock.close if sock end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kgio-2.11.4 | test/test_connect_fd_leak.rb |
kgio-2.11.3 | test/test_connect_fd_leak.rb |