Sha256: 7e99462a48dd56cebea7325b8153d3f9f68c55f09cf39dadb97e55e1c6dc94e4
Contents?: true
Size: 360 Bytes
Versions: 15
Compression:
Stored size: 360 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 end end
Version data entries
15 entries across 15 versions & 2 rubygems