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

ruby-changes:34099

From: nobu <ko1@a...>
Date: Tue, 27 May 2014 23:43:37 +0900 (JST)
Subject: [ruby-changes:34099] nobu:r46180 (trunk): parallel.rb: do not split messages

nobu	2014-05-27 23:43:15 +0900 (Tue, 27 May 2014)

  New Revision: 46180

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

  Log:
    parallel.rb: do not split messages
    
    * test/lib/test/unit/parallel.rb (Test::Unit::Worker#_run_suite):
      get rid of splitting leak checking messages.

  Modified files:
    trunk/test/lib/test/unit/parallel.rb
Index: test/lib/test/unit/parallel.rb
===================================================================
--- test/lib/test/unit/parallel.rb	(revision 46179)
+++ test/lib/test/unit/parallel.rb	(revision 46180)
@@ -35,7 +35,8 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/parallel.rb#L35
 
         th = Thread.new do
           begin
-            while buf = (self.verbose ? i.gets : i.read(5))
+            while buf = (self.verbose ? i.gets : (i.readpartial(1024) || i.read(5)))
+              buf.sub!(/\A\n?\.+(?!\z)/, '')
               _report "p", buf
             end
           rescue IOError

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

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