* 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:
sorah 2011-06-19 01:12:02 +00:00
Родитель 12efda14eb
Коммит 4c438fd0fe
2 изменённых файлов: 21 добавлений и 7 удалений

Просмотреть файл

@ -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
Test::Unit::Worker.new.run(ARGV)
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