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

* test/runner.rb: extracted test helper.

* test/lib/zombie_hunter.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2015-11-06 11:18:30 +00:00
parent fcf63d1e54
commit de8c69313e
3 changed files with 14 additions and 13 deletions

View file

@ -1,3 +1,8 @@
Fri Nov 6 20:18:25 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* test/runner.rb: extracted test helper.
* test/lib/zombie_hunter.rb: ditto.
Fri Nov 6 18:07:47 2015 Naohisa Goto <ngotogenome@gmail.com>
* include/ruby/ruby.h (rb_array_const_ptr, rb_struct_const_ptr):

View file

@ -0,0 +1,8 @@
module ZombieHunter
def after_teardown
super
assert_empty(Process.waitall)
end
end
Test::Unit::TestCase.include ZombieHunter

View file

@ -21,19 +21,7 @@ ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV["GEM_PATH"] = "".freeze
require_relative 'lib/profile_test_all' if ENV.has_key?('RUBY_TEST_ALL_PROFILE')
require_relative 'lib/tracepointchecker'
module Test::Unit
module ZombieHunter
def after_teardown
super
assert_empty(Process.waitall)
end
end
class TestCase
include ZombieHunter
end
end
require_relative 'lib/zombie_hunter'
if ENV['COVERAGE']
$LOAD_PATH.unshift "#{src_testdir}/../coverage/simplecov/lib"