Sha256: 7d864e0f1d667244f01c3ee1511696422cbead74d678180306bb9984fa7cd418
Contents?: true
Size: 477 Bytes
Versions: 7
Compression:
Stored size: 477 Bytes
Contents
require 'test/unit' require 'io/nonblock' $-w = true require 'kgio' class TestConnectFDLeak < Test::Unit::TestCase def teardown Kgio.wait_readable = Kgio.wait_writable = nil end def test_unix_socket nr = 0 path = "/non/existent/path" assert(! File.exist?(path), "#{path} should not exist") assert_nothing_raised do begin sock = Kgio::UNIXSocket.new(path) rescue Errno::ENOENT end while (nr += 1) < 10000 end end end
Version data entries
7 entries across 7 versions & 1 rubygems