mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00

When the test source directory path contains symbolic links, that directory might be placed earlier in the result of `IRB::InputCompletor.retrieve_gem_and_system_load_path`, than other directories in the source tree that are expanded to the real path. In that case, the test file in "csv" under the test directory of csv gem instead of the library path will be the first candidate, in `TestIRB::TestCompletion#test_complete_require_library_name_first`. ``` <"'csv"> expected but was <"'csv/helper">. ```
23 lines
518 B
Ruby
23 lines
518 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_checker"
|
|
require_relative "../test-coverage.rb" if ENV.key?('COVERAGE')
|
|
|
|
case $0
|
|
when __FILE__
|
|
dir = __dir__
|
|
when "-e"
|
|
# No default directory
|
|
else
|
|
dir = File.realdirpath("..", $0)
|
|
end
|
|
exit Test::Unit::AutoRunner.run(true, dir)
|