mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/socket/test_socket.rb (test_udp_recvmsg_truncation):
AIX does not set the MSG_TRUNC flag for a message partially read by recvmsg(2) with the MSG_PEEK flag set. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
75b61aa316
commit
acfd12ae36
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu Mar 10 09:49:54 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
||||
|
||||
* test/socket/test_socket.rb (test_udp_recvmsg_truncation):
|
||||
AIX does not set the MSG_TRUNC flag for a message partially read
|
||||
by recvmsg(2) with the MSG_PEEK flag set.
|
||||
|
||||
Wed Mar 9 16:48:45 2016 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* benchmark/driver.rb: fix my last commit (syntax error).
|
||||
|
|
|
@ -709,7 +709,8 @@ class TestSocket < Test::Unit::TestCase
|
|||
s2.send("a" * 100, 0)
|
||||
ret, addr, rflags = s1.recvmsg(10, Socket::MSG_PEEK)
|
||||
assert_equal "a" * 10, ret
|
||||
assert_equal Socket::MSG_TRUNC, rflags & Socket::MSG_TRUNC if !rflags.nil?
|
||||
# AIX does not set MSG_TRUNC for a message partially read with MSG_PEEK.
|
||||
assert_equal Socket::MSG_TRUNC, rflags & Socket::MSG_TRUNC if !rflags.nil? && /aix/ !~ RUBY_PLATFORM
|
||||
ret, addr, rflags = s1.recvmsg(10, 0)
|
||||
assert_equal "a" * 10, ret
|
||||
assert_equal Socket::MSG_TRUNC, rflags & Socket::MSG_TRUNC if !rflags.nil?
|
||||
|
|
Loading…
Reference in a new issue