summaryrefslogtreecommitdiff
path: root/test/lib/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 14:43:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-27 14:43:15 +0000
commit9ee98ff79894e70728c121c2182516883cb613f2 (patch)
tree53d0a833887da6c1ba4b427545c52b508faf2740 /test/lib/test
parentfe780f29977ccb09c5bce008e9d5bbf245d1cb38 (diff)
parallel.rb: do not split messages
* test/lib/test/unit/parallel.rb (Test::Unit::Worker#_run_suite): get rid of splitting leak checking messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/test')
-rw-r--r--test/lib/test/unit/parallel.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/test/unit/parallel.rb b/test/lib/test/unit/parallel.rb
index d51fe2f..d8f8e8f 100644
--- a/test/lib/test/unit/parallel.rb
+++ b/test/lib/test/unit/parallel.rb
@@ -35,7 +35,8 @@ module Test
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