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

Version Path
kgio-2.11.2 test/test_connect_fd_leak.rb
kgio-2.11.1.1.g36ea test/test_connect_fd_leak.rb
kgio-2.11.1 test/test_connect_fd_leak.rb
kgio-2.11.0 test/test_connect_fd_leak.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/kgio-2.10.0/test/test_connect_fd_leak.rb
kgio-2.10.0 test/test_connect_fd_leak.rb
kgio-2.9.3 test/test_connect_fd_leak.rb
kgio-2.9.2 test/test_connect_fd_leak.rb
kgio-2.9.1 test/test_connect_fd_leak.rb
kgio-2.9.0.2.gf33a test/test_connect_fd_leak.rb
kgio-2.9.0 test/test_connect_fd_leak.rb
kgio-2.8.1 test/test_connect_fd_leak.rb
kgio-2.8.0.2.g30c1 test/test_connect_fd_leak.rb
kgio-2.8.0 test/test_connect_fd_leak.rb
kgio-2.7.4 test/test_connect_fd_leak.rb