1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/socket/test_socket.rb (test_udp_server): rescue Errno::ENOSYS

for Windows.

* test/socket/test_nonblock.rb (test_sendmsg_nonblock_error): ditto.

  [ruby-dev:41597] reported by Masaya Tarui.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-06-14 13:46:06 +00:00
parent 0556fa02de
commit 3a4231cdf4
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,12 @@
Mon Jun 14 22:36:09 2010 Tanaka Akira <akr@fsij.org>
* test/socket/test_socket.rb (test_udp_server): rescue Errno::ENOSYS
for Windows.
* test/socket/test_nonblock.rb (test_sendmsg_nonblock_error): ditto.
[ruby-dev:41597] reported by Masaya Tarui.
Mon Jun 14 17:44:39 2010 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* lib/drb/drb.rb: raise DRbConnError instead of ArgumentError if too

View file

@ -220,7 +220,7 @@ class TestSocketNonblock < Test::Unit::TestCase
loop {
s1.sendmsg_nonblock("a" * 100000)
}
rescue NotImplementedError
rescue NotImplementedError, Errno::ENOSYS
skip "sendmsg not implemented on this platform."
rescue Errno::EMSGSIZE
# UDP has 64K limit (if no Jumbograms). No problem.

View file

@ -289,7 +289,7 @@ class TestSocket < Test::Unit::TestCase
assert_equal(ai.ip_address, addr.ip_address)
}
}
rescue NotImplementedError
rescue NotImplementedError, Errno::ENOSYS
skipped = true
skip "need sendmsg and recvmsg"
ensure