From 0f9554efa19bc200633c77298af2738098dc333f Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 10 Feb 2017 01:13:22 +0000 Subject: parallel.rb: fix intervention * test/lib/test/unit/parallel.rb (_report): send a response and a newline atomically, to get rid of intervention with "p" which runs in a separate thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/lib/test/unit/parallel.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/lib/test/unit/parallel.rb') diff --git a/test/lib/test/unit/parallel.rb b/test/lib/test/unit/parallel.rb index c1b6094b8c..50d4427189 100644 --- a/test/lib/test/unit/parallel.rb +++ b/test/lib/test/unit/parallel.rb @@ -152,8 +152,7 @@ module Test end def _report(res, *args) # :nodoc: - res = "#{res} #{args.pack("m0")}" unless args.empty? - @stdout.puts(res) + @stdout.write(args.empty? ? "#{res}\n" : "#{res} #{args.pack("m0")}\n") end def puke(klass, meth, e) # :nodoc: -- cgit v1.2.3