summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-18 17:22:34 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-18 17:22:34 +0000
commit1ca597236fda4c8c237f84956c77bb95f2b05df5 (patch)
treecb3e2c521b911f4d6ac233e4cf17bcf94ab4f11c /test
parentf74c229c080b54385ffe1dc4aebf082d67f7123b (diff)
* test/socket/test_socket.rb (test_udp_recvmsg_truncation): rflags is
nil on Solaris 10 which have no HAVE_STRUCT_MSGHDR_MSG_CONTROL. Reported by Naohisa Goto. [ruby-core:71557] [Bug #11709] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/socket/test_socket.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
index 8f16c0613f..f9cbdbd3c8 100644
--- a/test/socket/test_socket.rb
+++ b/test/socket/test_socket.rb
@@ -706,14 +706,14 @@ 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
+ assert_equal Socket::MSG_TRUNC, rflags & Socket::MSG_TRUNC if !rflags.nil?
ret, addr, rflags = s1.recvmsg(10, 0)
assert_equal "a" * 10, ret
- assert_equal Socket::MSG_TRUNC, rflags & Socket::MSG_TRUNC
+ assert_equal Socket::MSG_TRUNC, rflags & Socket::MSG_TRUNC if !rflags.nil?
s2.send("b" * 100, 0)
ret, addr, rflags = s1.recvmsg(10, 0)
assert_equal "b" * 10, ret
- assert_equal Socket::MSG_TRUNC, rflags & Socket::MSG_TRUNC
+ assert_equal Socket::MSG_TRUNC, rflags & Socket::MSG_TRUNC if !rflags.nil?
ensure
s1.close
s2.close