mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (socket_s_ip_address_list): drop inactive
adapters. * test/socket/test_{nonblock,addrinfo,socket}.rb: skip some tests on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d704802dd
commit
229b4e4c37
5 changed files with 33 additions and 5 deletions
|
@ -196,6 +196,8 @@ class TestSocketNonblock < Test::Unit::TestCase
|
|||
loop {
|
||||
c.sendmsg_nonblock("a" * 100000)
|
||||
}
|
||||
rescue NotImplementedError
|
||||
skip "sendmsg not implemented on this platform."
|
||||
rescue Errno::EWOULDBLOCK
|
||||
assert_kind_of(IO::WaitWritable, $!)
|
||||
end
|
||||
|
@ -206,6 +208,8 @@ class TestSocketNonblock < Test::Unit::TestCase
|
|||
tcp_pair {|c, s|
|
||||
begin
|
||||
c.recvmsg_nonblock(4096)
|
||||
rescue NotImplementedError
|
||||
skip "sendmsg not implemented on this platform."
|
||||
rescue Errno::EWOULDBLOCK
|
||||
assert_kind_of(IO::WaitReadable, $!)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue