mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
79eb5e1aca
RUBY_TEST_GC_COMPACT=1 enables GC.compact checker which calls GC.compact after each test.
23 lines
526 B
Ruby
23 lines
526 B
Ruby
# frozen_string_literal: true
|
|
require 'rbconfig'
|
|
|
|
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
|
|
|
|
require 'test/unit'
|
|
|
|
require "profile_test_all" if ENV.key?('RUBY_TEST_ALL_PROFILE')
|
|
require "tracepointchecker"
|
|
require "zombie_hunter"
|
|
require "iseq_loader_checker"
|
|
require "gc_compact_checker"
|
|
require_relative "../test-coverage.rb" if ENV.key?('COVERAGE')
|
|
|
|
case $0
|
|
when __FILE__
|
|
dir = __dir__
|
|
when "-e"
|
|
# No default directory
|
|
else
|
|
dir = File.expand_path("..", $0)
|
|
end
|
|
exit Test::Unit::AutoRunner.run(true, dir)
|