Sha256: 475ecc2de8d14ff36f8816d03d23430f7f722fc8e4be162d06c2fe6d3757273b

Contents?: true

Size: 460 Bytes

Versions: 7

Compression:

Stored size: 460 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 Integer, 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

7 entries across 7 versions & 2 rubygems

Version Path
raindrops-maintained-0.21.0 test/test_inet_diag_socket.rb
raindrops-0.20.1 test/test_inet_diag_socket.rb
raindrops-0.20.0 test/test_inet_diag_socket.rb
raindrops-0.19.2 test/test_inet_diag_socket.rb
raindrops-0.19.1 test/test_inet_diag_socket.rb
raindrops-0.19.0 test/test_inet_diag_socket.rb
raindrops-0.18.0 test/test_inet_diag_socket.rb