From 058e6894bf67e62a21334c91efa992510ac4296b Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 19 Jun 2013 07:47:07 +0000 Subject: 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 --- test/runner.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') 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) -- cgit v1.2.3