aboutsummaryrefslogtreecommitdiffstats
path: root/test/runner.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-19 07:47:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-19 07:47:07 +0000
commit058e6894bf67e62a21334c91efa992510ac4296b (patch)
treef51f1d75df29991e695cb1d1001a468e14119046 /test/runner.rb
parent9b47ec04a89711766c4d14b6d7792fecc7c7b185 (diff)
downloadruby-058e6894bf67e62a21334c91efa992510ac4296b.tar.gz
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/runner.rb')
-rw-r--r--test/runner.rb12
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)