aboutsummaryrefslogtreecommitdiffstats
path: root/test/socket/test_nonblock.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 13:40:59 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 13:40:59 +0000
commit229b4e4c3773949987950c7fa5ed09868fcd094d (patch)
tree650e2ecd7e0e662ff6006284920c4d588d5a33d8 /test/socket/test_nonblock.rb
parent3d704802ddcd23c5396428d9bb96f96ae2de6e77 (diff)
downloadruby-229b4e4c3773949987950c7fa5ed09868fcd094d.tar.gz
* 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
Diffstat (limited to 'test/socket/test_nonblock.rb')
-rw-r--r--test/socket/test_nonblock.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb
index e8e7fca95f..f29766886f 100644
--- a/test/socket/test_nonblock.rb
+++ b/test/socket/test_nonblock.rb
@@ -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