1 # -*- encoding: binary -*-
5 $stderr.sync = $stdout.sync = true
7 class TestInetDiagSocket < Test::Unit::TestCase
9 sock = Raindrops::InetDiagSocket.new
10 assert_kind_of Socket, sock
11 assert_kind_of Fixnum, sock.fileno
12 flags = sock.fcntl(Fcntl::F_GETFD)
13 assert_equal Fcntl::FD_CLOEXEC, flags & Fcntl::FD_CLOEXEC
16 end if RUBY_PLATFORM =~ /linux/