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

ruby-changes:39207

From: normal <ko1@a...>
Date: Sat, 18 Jul 2015 07:21:45 +0900 (JST)
Subject: [ruby-changes:39207] normal:r51288 (trunk): test/socket/test_nonblock: use smaller buffer for sendmsg

normal	2015-07-18 07:21:37 +0900 (Sat, 18 Jul 2015)

  New Revision: 51288

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

  Log:
    test/socket/test_nonblock: use smaller buffer for sendmsg
    
    OpenBSD's limit is less than 128.
    
    * test/socket/test_nonblock: use smaller buffer for sendmsg
      Patch-by: Jeremy Evans <code@j...>
      [ruby-core:70016] [Bug #11364]

  Modified files:
    trunk/ChangeLog
    trunk/test/socket/test_nonblock.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51287)
+++ ChangeLog	(revision 51288)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jul 18 07:20:18 2015  Jeremy Evans  <code@j...>
+
+	* test/socket/test_nonblock: use smaller buffer for sendmsg
+	  [ruby-core:70016] [Bug #11364]
+
 Sat Jul 18 07:04:24 2015  Eric Wong  <e@8...>
 
 	* signal.c (trap_handler): cleanup to use RSTRING_GETMEM + memcmp
Index: test/socket/test_nonblock.rb
===================================================================
--- test/socket/test_nonblock.rb	(revision 51287)
+++ test/socket/test_nonblock.rb	(revision 51288)
@@ -299,7 +299,7 @@ class TestSocketNonblock < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/socket/test_nonblock.rb#L299
 
   if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
     def test_sendmsg_nonblock_seqpacket
-      buf = '*' * 8192
+      buf = '*' * 63
       UNIXSocket.pair(:SEQPACKET) do |s1, s2|
         assert_raise(IO::WaitWritable) do
           loop { s1.sendmsg_nonblock(buf) }
@@ -310,7 +310,7 @@ class TestSocketNonblock < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/socket/test_nonblock.rb#L310
     end
 
     def test_sendmsg_nonblock_no_exception
-      buf = '*' * 128
+      buf = '*' * 63
       UNIXSocket.pair(:SEQPACKET) do |s1, s2|
         n = 0
         Timeout.timeout(60) do

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

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