mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/socket/test_nonblock.rb: try to avoid EMSGSIZE
We want to test the IO::WaitWritable behavior, so silently discarding Errno::EMSGSIZE prevents the test from being effective. [ruby-core:69466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ea67fb97d9
commit
5d983e4fb2
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Jun 6 08:52:13 2015 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
|
* test/socket/test_nonblock.rb: try to avoid EMSGSIZE
|
||||||
|
[ruby-core:69466]
|
||||||
|
|
||||||
Sat Jun 6 07:58:30 2015 Koichi Sasada <ko1@atdot.net>
|
Sat Jun 6 07:58:30 2015 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* gc.c: remove struct mark_tbl_arg and pass objspace directly
|
* gc.c: remove struct mark_tbl_arg and pass objspace directly
|
||||||
|
|
|
@ -277,9 +277,9 @@ class TestSocketNonblock < Test::Unit::TestCase
|
||||||
|
|
||||||
if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
|
if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
|
||||||
def test_sendmsg_nonblock_seqpacket
|
def test_sendmsg_nonblock_seqpacket
|
||||||
buf = '*' * 10000
|
buf = '*' * 8192
|
||||||
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
|
UNIXSocket.pair(:SEQPACKET) do |s1, s2|
|
||||||
assert_raise(IO::WaitWritable,Errno::EMSGSIZE) do
|
assert_raise(IO::WaitWritable) do
|
||||||
loop { s1.sendmsg_nonblock(buf) }
|
loop { s1.sendmsg_nonblock(buf) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue