Issue #5822 has been reported by Tomoyuki Chikanaga.

----------------------------------------
Bug #5822: testunit ??? -j ??????激?с?潟??羝<????????????鴻?????絎?茵???????????篋???????
https://bugs.ruby-lang.org/issues/5822

Author: Tomoyuki Chikanaga
Status: Open
Priority: Normal
Assignee: Shota Fukumori
Category: lib
Target version: 
ruby -v: ruby 2.0.0dev (2011-12-28 trunk 34149) [i686-linux]


make test-all TESTS="-j2 ruby/test_require.rb"
?????????? test-all ??????違?? -j ???1?????<?ゃ??????筝?????????腮???????鴻???????蚊??ゃ??絎?茵???????????篋??????????????????????障?????

@tasks ???腥冴???c????????? worker ??????? :prepare ??障????? :ready ???????茵?筝?? worker ???絮????????ゆ???????篋??????????障??????????с?????

篁ヤ???????????????眼?т??綽???榊??????????????障????????筝?綽???????????? status ???倶????欠Щ?????<???????腆肴????????????????????с?????

diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index eb0666a..00313a3 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -457,7 +457,9 @@ module Test
                 bang = $1
                 worker.status = :ready
                 if @tasks.empty?
-                  break unless @workers.find{|x| x.status == :running }
+                  unless @workers.find{|x| [:running, :prepare].include? x.status}
+                    break
+                  end
                 else
                   if @options[:separate] && bang.empty?
                     @workers_hash.delete worker.io



-- 
http://redmine.ruby-lang.org