diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-19 07:47:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-19 07:47:07 +0000 |
commit | 058e6894bf67e62a21334c91efa992510ac4296b (patch) | |
tree | f51f1d75df29991e695cb1d1001a468e14119046 /test | |
parent | 9b47ec04a89711766c4d14b6d7792fecc7c7b185 (diff) |
test/runner.rb: reap zombies
* test/runner.rb (Test::Unit::ZombieHunter#after_teardown): reap zombies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/runner.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/runner.rb b/test/runner.rb index 49844c798e..c8f7932625 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -14,4 +14,16 @@ ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV["GEM_PATH"] = "".freeze require_relative 'profile_test_all' if ENV['RUBY_TEST_ALL_PROFILE'] == 'true' +module Test::Unit + module ZombieHunter + def after_teardown + super + assert_empty(Process.waitall) + end + end + class TestCase + include ZombieHunter + end +end + exit Test::Unit::AutoRunner.run(true, src_testdir) |