New option "--separate" for test/unit; when running tests with this
option, a job process will be restarted after one testcase has done.
This means all testcases will run with separated process.
* lib/test/unit/parallel.rb: Fix for above. Now parallel.rb puts
"ready!" for first ready, "ready" for afters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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
* test/testunit/tests_for_parallel/test_third.rb: Use
Test::Unit::TestCase#on_parallel_worker? for detecting worker.
* lib/test/unit/testcase.rb(Test::Unit::TestCase#on_parallel_worker?):
New Method Test::Unit::TestCase#on_parallel_worker? returns true
when a testcase is running on parallel worker.
* lib/test/unit/parallel.rb(Test::Unit::TestCase#on_parallel_worker?):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
and restore after run. Because some test break $stdin, $stdout.
Fixes [Bug #4433] [ruby-core:35353]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Interrupt, immediately puts result and exit. [ruby-dev:43571]
* lib/test/unit.rb: When received Interrupt, wait results from workers
and correct them. [ruby-dev:43571]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Test for r30939.
* lib/test/unit.rb: For test.
* lib/test/parallel.rb: For test.
* lib/test/unit/testcase.rb: For test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e