diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-05 23:55:23 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-05 23:55:23 +0000 |
commit | 5f1ad081a90b24e80fcad3e1898f1f669dc16b29 (patch) | |
tree | ef75c81fc0c469ff989fb40756615d6cfca6260f /test | |
parent | 77cce0775a4e32d43f4347c4255652d647431ab0 (diff) | |
download | ruby-5f1ad081a90b24e80fcad3e1898f1f669dc16b29.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/socket/test_nonblock.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb index b1959ee2c7..f0fba3af74 100644 --- a/test/socket/test_nonblock.rb +++ b/test/socket/test_nonblock.rb @@ -277,9 +277,9 @@ class TestSocketNonblock < Test::Unit::TestCase if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET) def test_sendmsg_nonblock_seqpacket - buf = '*' * 10000 + buf = '*' * 8192 UNIXSocket.pair(:SEQPACKET) do |s1, s2| - assert_raise(IO::WaitWritable,Errno::EMSGSIZE) do + assert_raise(IO::WaitWritable) do loop { s1.sendmsg_nonblock(buf) } end end |