aboutsummaryrefslogtreecommitdiffstats
path: root/test/runner.rb
diff options
context:
space:
mode:
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)