mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 4 additions and 4 deletions
|
@ -275,16 +275,16 @@ class TestSocketNonblock < Test::Unit::TestCase
|
|||
}
|
||||
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
|
||||
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
|
||||
assert_raises(IO::WaitWritable) do
|
||||
loop { s1.sendmsg_nonblock(buf) }
|
||||
end
|
||||
end
|
||||
else
|
||||
skip "UNIXSocket.pair(:SEQPACKET) not implemented on this platform"
|
||||
rescue NotImplementedError, Errno::ENOSYS, Errno::EPROTONOSUPPORT
|
||||
skip "UNIXSocket.pair(:SEQPACKET) not implemented on this platform: #{$!}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue