1 # -*- encoding: binary -*-
2 # frozen_string_literal: false
6 $stderr.sync = $stdout.sync = true
8 class TestInetDiagSocket < Test::Unit::TestCase
10 sock = Raindrops::InetDiagSocket.new
11 assert_kind_of Socket, sock
12 assert_kind_of Integer, sock.fileno
13 flags = sock.fcntl(Fcntl::F_GETFD)
14 assert_equal Fcntl::FD_CLOEXEC, flags & Fcntl::FD_CLOEXEC
17 end if RUBY_PLATFORM =~ /linux/