1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-06-19 07:47:07 +00:00
parent 9b47ec04a8
commit 058e6894bf

View file

@ -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)