зеркало из https://github.com/github/ruby.git
* lib/test/unit.rb(Test::Unit::Runner#_run_parallel): Ignore -j0
because it makes blocking forever by IO.select. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
72e8077957
Коммит
6e125382d7
|
@ -1,3 +1,8 @@
|
|||
Thu Jun 16 07:20:06 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* lib/test/unit.rb(Test::Unit::Runner#_run_parallel): Ignore -j0
|
||||
because it makes blocking forever by IO.select.
|
||||
|
||||
Thu Jun 16 03:08:11 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* test/testunit/test_parallel.rb (TestParallel::TestParallelWorker#
|
||||
|
|
|
@ -388,6 +388,11 @@ module Test
|
|||
end
|
||||
|
||||
def _run_parallel suites, type, result
|
||||
if @opts[:parallel] < 1
|
||||
warn "Error: parameter of -j option should be greater than 0."
|
||||
return
|
||||
end
|
||||
|
||||
begin
|
||||
# Require needed things for parallel running
|
||||
require 'thread'
|
||||
|
|
Загрузка…
Ссылка в новой задаче