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

ruby-changes:39229

From: normal <ko1@a...>
Date: Tue, 21 Jul 2015 17:18:07 +0900 (JST)
Subject: [ruby-changes:39229] normal:r51310 (trunk): test/socket/test_nonblock.rb: increase buffer sizes to OpenBSD limits

normal	2015-07-21 17:17:48 +0900 (Tue, 21 Jul 2015)

  New Revision: 51310

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

  Log:
    test/socket/test_nonblock.rb: increase buffer sizes to OpenBSD limits
    
    * test/socket/test_nonblock.rb: increase buffer sizes to
      OpenBSD limits.  Thanks to Jeremy Evans <code@j...>
      [ruby-core:70058]

  Modified files:
    trunk/ChangeLog
    trunk/test/socket/test_nonblock.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51309)
+++ ChangeLog	(revision 51310)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jul 21 16:18:48 2015  Eric Wong  <e@8...>
+
+	* test/socket/test_nonblock.rb: increase buffer sizes
+	  to OpenBSD limits. Thanks to Jeremy Evans <code@j...>
+	  [ruby-core:70058]
+
 Tue Jul 21 16:08:53 2015  Eric Wong  <e@8...>
 
 	* load.c (ruby_dln_librefs): make static
Index: test/socket/test_nonblock.rb
===================================================================
--- test/socket/test_nonblock.rb	(revision 51309)
+++ test/socket/test_nonblock.rb	(revision 51310)
@@ -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 = '*' * 63
+      buf = '*' * 4096
       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 = '*' * 63
+      buf = '*' * 4096
       UNIXSocket.pair(:SEQPACKET) do |s1, s2|
         n = 0
         Timeout.timeout(60) do

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

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