[前][次][番号順一覧][スレッド一覧]

ruby-changes:42000

From: odaira <ko1@a...>
Date: Thu, 10 Mar 2016 09:55:42 +0900 (JST)
Subject: [ruby-changes:42000] odaira:r54073 (trunk): * test/socket/test_socket.rb (test_udp_recvmsg_truncation):

odaira	2016-03-10 09:55:37 +0900 (Thu, 10 Mar 2016)

  New Revision: 54073

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54073

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/test/socket/test_socket.rb
Index: test/socket/test_socket.rb
===================================================================
--- test/socket/test_socket.rb	(revision 54072)
+++ test/socket/test_socket.rb	(revision 54073)
@@ -709,7 +709,8 @@ class TestSocket < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/socket/test_socket.rb#L709
     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?
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54072)
+++ ChangeLog	(revision 54073)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Mar 10 09:49:54 2016  Rei Odaira  <Rei.Odaira@g...>
+
+	* 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@a...>
 
 	* benchmark/driver.rb: fix my last commit (syntax error).

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]