mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels): fix
premature exit when all workers' status are :ready or :prepare. [ruby-dev:45061] [Bug #5822] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
de5c0b839b
commit
59130ced83
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu Dec 29 22:36:16 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels): fix
|
||||
premature exit when all workers' status are :ready or :prepare.
|
||||
[ruby-dev:45061] [Bug #5822]
|
||||
|
||||
Thu Dec 29 01:51:13 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* include/ruby/ruby.h: fix #error pragma. LLP64 platform is supported.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue