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

ruby-changes:38707

From: normal <ko1@a...>
Date: Sat, 6 Jun 2015 08:55:30 +0900 (JST)
Subject: [ruby-changes:38707] normal:r50788 (trunk): test/socket/test_nonblock.rb: try to avoid EMSGSIZE

normal	2015-06-06 08:55:23 +0900 (Sat, 06 Jun 2015)

  New Revision: 50788

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

  Log:
    test/socket/test_nonblock.rb: try to avoid EMSGSIZE
    
    We want to test the IO::WaitWritable behavior, so silently
    discarding Errno::EMSGSIZE prevents the test from being
    effective.
    [ruby-core:69466]

  Modified files:
    trunk/ChangeLog
    trunk/test/socket/test_nonblock.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50787)
+++ ChangeLog	(revision 50788)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Jun  6 08:52:13 2015  Eric Wong  <e@8...>
+
+	* test/socket/test_nonblock.rb: try to avoid EMSGSIZE
+	  [ruby-core:69466]
+
 Sat Jun  6 07:58:30 2015  Koichi Sasada  <ko1@a...>
 
 	* gc.c: remove struct mark_tbl_arg and pass objspace directly
Index: test/socket/test_nonblock.rb
===================================================================
--- test/socket/test_nonblock.rb	(revision 50787)
+++ test/socket/test_nonblock.rb	(revision 50788)
@@ -277,9 +277,9 @@ class TestSocketNonblock < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/socket/test_nonblock.rb#L277
 
   if defined?(UNIXSocket) && defined?(Socket::SOCK_SEQPACKET)
     def test_sendmsg_nonblock_seqpacket
-      buf = '*' * 10000
+      buf = '*' * 8192
       UNIXSocket.pair(:SEQPACKET) do |s1, s2|
-        assert_raise(IO::WaitWritable,Errno::EMSGSIZE) do
+        assert_raise(IO::WaitWritable) do
           loop { s1.sendmsg_nonblock(buf) }
         end
       end

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

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