diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-06 11:18:30 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-06 11:18:30 +0000 |
commit | de8c69313e87adc6e4f2b006ba48d5d82912bade (patch) | |
tree | 39f61dafecad67179225fb0cd32d3ab8da2d210b | |
parent | fcf63d1e54384420a1ac8b5b5e2b7bd0b53a5df3 (diff) |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/lib/zombie_hunter.rb | 8 | ||||
-rw-r--r-- | test/runner.rb | 14 |
3 files changed, 14 insertions, 13 deletions
@@ -1,3 +1,8 @@ +Fri Nov 6 20:18:25 2015 SHIBATA Hiroshi <[email protected]> + + * test/runner.rb: extracted test helper. + * test/lib/zombie_hunter.rb: ditto. + Fri Nov 6 18:07:47 2015 Naohisa Goto <[email protected]> * include/ruby/ruby.h (rb_array_const_ptr, rb_struct_const_ptr): diff --git a/test/lib/zombie_hunter.rb b/test/lib/zombie_hunter.rb new file mode 100644 index 0000000000..77be4dfea8 --- /dev/null +++ b/test/lib/zombie_hunter.rb @@ -0,0 +1,8 @@ +module ZombieHunter + def after_teardown + super + assert_empty(Process.waitall) + end +end + +Test::Unit::TestCase.include ZombieHunter diff --git a/test/runner.rb b/test/runner.rb index 0327bbf49c..60ce940b61 100644 --- a/test/runner.rb +++ b/test/runner.rb @@ -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" |