Sha256: 6f130eaab31d7c0788816844e73b0f4b8fa1b8b84ebd01a67832d791fcc4c5bd

Contents?: true

Size: 459 Bytes

Versions: 18

Compression:

Stored size: 459 Bytes

Contents

# -*- encoding: binary -*-
require 'test/unit'
require 'raindrops'
require 'fcntl'
$stderr.sync = $stdout.sync = true

class TestInetDiagSocket < Test::Unit::TestCase
  def test_new
    sock = Raindrops::InetDiagSocket.new
    assert_kind_of Socket, sock
    assert_kind_of Fixnum, sock.fileno
    flags = sock.fcntl(Fcntl::F_GETFD)
    assert_equal Fcntl::FD_CLOEXEC, flags & Fcntl::FD_CLOEXEC
    assert_nil sock.close
  end
end if RUBY_PLATFORM =~ /linux/

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
raindrops-0.17.0 test/test_inet_diag_socket.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/raindrops-0.16.0/test/test_inet_diag_socket.rb
raindrops-0.16.0 test/test_inet_diag_socket.rb
raindrops-0.15.0 test/test_inet_diag_socket.rb
raindrops-0.14.0.1.g8177 test/test_inet_diag_socket.rb
raindrops-0.14.0 test/test_inet_diag_socket.rb
raindrops-0.13.0 test/test_inet_diag_socket.rb
raindrops-0.12.0.5.g821b test/test_inet_diag_socket.rb
raindrops-0.12.0 test/test_inet_diag_socket.rb
raindrops-0.11.0 test/test_inet_diag_socket.rb
raindrops-0.10.0 test/test_inet_diag_socket.rb
raindrops-0.9.0 test/test_inet_diag_socket.rb
raindrops-0.8.1 test/test_inet_diag_socket.rb
raindrops-0.8.0.5.g71f8 test/test_inet_diag_socket.rb
raindrops-0.8.0 test/test_inet_diag_socket.rb
raindrops-0.7.0 test/test_inet_diag_socket.rb
raindrops-0.6.1 test/test_inet_diag_socket.rb
raindrops-0.6.0 test/test_inet_diag_socket.rb