зеркало из https://github.com/github/ruby.git
* lib/test/unit/parallel.rb: Override Test::Unit::TestCase#on_parallel_worker?
only when $0 == __FILE__. * lib/test/unit/parallel.rb: Run Test::Unit::Worker.run only when $0 == __FILE__. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
12efda14eb
Коммит
4c438fd0fe
|
@ -1,3 +1,11 @@
|
|||
Sun Jun 19 10:05:16 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* lib/test/unit/parallel.rb: Override Test::Unit::TestCase#on_parallel_worker?
|
||||
only when $0 == __FILE__.
|
||||
|
||||
* lib/test/unit/parallel.rb: Run Test::Unit::Worker.run only when
|
||||
$0 == __FILE__.
|
||||
|
||||
Sat Jun 18 23:59:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (fill_cbuf): finish reading at EOF, and the readconv has
|
||||
|
|
|
@ -2,12 +2,6 @@ require 'test/unit'
|
|||
|
||||
module Test
|
||||
module Unit
|
||||
class TestCase < MiniTest::Unit::TestCase
|
||||
def on_parallel_worker?
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
class Worker < Runner
|
||||
class << self
|
||||
undef autorun
|
||||
|
@ -148,4 +142,16 @@ module Test
|
|||
end
|
||||
end
|
||||
|
||||
if $0 == __FILE__
|
||||
module Test
|
||||
module Unit
|
||||
class TestCase < MiniTest::Unit::TestCase
|
||||
def on_parallel_worker?
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Test::Unit::Worker.new.run(ARGV)
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче