1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/runner.rb
naruse 6be21c1de0 remove debugging raise in previous commit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-07-30 07:08:28 +00:00

39 lines
743 B
Ruby

require 'rbconfig'
require 'test/unit'
src_testdir = File.dirname(File.realpath(__FILE__))
$LOAD_PATH << src_testdir
module Gem
end
class Gem::TestCase < MiniTest::Unit::TestCase
@@project_dir = File.dirname($LOAD_PATH.last)
end
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
begin
require 'objspace'
h = {}
exit Test::Unit::AutoRunner.run(true, src_testdir)
rescue
ObjectSpace.count_objects(h)
p h
ObjectSpace.count_objects_size(h)
p h
raise
end