test_nonblock.rb: skip if EPROTONOSUPPORT
* test/socket/test_nonblock.rb (test_sendmsg_nonblock_seqpacket): OSX raises EPROTONOSUPPORT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
18e7743817
commit
21f2c194bb
@ -275,16 +275,16 @@ class TestSocketNonblock < Test::Unit::TestCase
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_sendmsg_nonblock_seqpacket
|
if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
|
||||||
if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
|
def test_sendmsg_nonblock_seqpacket
|
||||||
buf = '*' * 10000
|
buf = '*' * 10000
|
||||||
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
|
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
|
||||||
assert_raises(IO::WaitWritable) do
|
assert_raises(IO::WaitWritable) do
|
||||||
loop { s1.sendmsg_nonblock(buf) }
|
loop { s1.sendmsg_nonblock(buf) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
rescue NotImplementedError, Errno::ENOSYS, Errno::EPROTONOSUPPORT
|
||||||
skip "UNIXSocket.pair(:SEQPACKET) not implemented on this platform"
|
skip "UNIXSocket.pair(:SEQPACKET) not implemented on this platform: #{$!}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user