mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
2696fb9503
* test/runner.rb (src_testdir): expand real path so that TestGem#test_self_find_files does not fail by aliased load path when srcdir contains a symbolic link. * tool/runruby.rb (srcdir): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
15 lines
364 B
Ruby
15 lines
364 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
|
|
|
|
require_relative 'profile_test_all' if ENV['RUBY_TEST_ALL_PROFILE'] == 'true'
|
|
|
|
exit Test::Unit::AutoRunner.run(true, src_testdir)
|