7 class TestKgioUNIXServer < Test::Unit::TestCase
10 tmp = Tempfile.new('kgio_unix')
14 @srv = Kgio::UNIXServer.new(@path)
18 @srv.close unless @srv.closed?
20 Kgio.accept_cloexec = true
24 a = UNIXSocket.new(@path)
26 assert_kind_of Kgio::Socket, b
27 assert_equal "127.0.0.1", b.kgio_addr
30 def test_accept_nonblock
32 assert_equal nil, @srv.kgio_accept