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:
parent
fcf63d1e54
commit
de8c69313e
3 changed files with 14 additions and 13 deletions
|
@ -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):
|
||||
|
|
8
test/lib/zombie_hunter.rb
Normal file
8
test/lib/zombie_hunter.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
module ZombieHunter
|
||||
def after_teardown
|
||||
super
|
||||
assert_empty(Process.waitall)
|
||||
end
|
||||
end
|
||||
|
||||
Test::Unit::TestCase.include ZombieHunter
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue