aboutsummaryrefslogtreecommitdiffstats
path: root/test/runner.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-08 07:19:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-08 07:19:38 +0000
commit2696fb950391fb74685caf0484f130430d2d2146 (patch)
tree849b750fc75f8476aa779c86bfa5ac389e18cc00 /test/runner.rb
parent52c7036436f8cd5255103e37dde0720a997eec63 (diff)
downloadruby-2696fb950391fb74685caf0484f130430d2d2146.tar.gz
test: realpath
* 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
Diffstat (limited to 'test/runner.rb')
-rw-r--r--test/runner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/runner.rb b/test/runner.rb
index 72b2360cd8..d077672160 100644
--- a/test/runner.rb
+++ b/test/runner.rb
@@ -2,7 +2,7 @@ require 'rbconfig'
require 'test/unit'
-src_testdir = File.dirname(File.expand_path(__FILE__))
+src_testdir = File.dirname(File.realpath(__FILE__))
$LOAD_PATH << src_testdir
module Gem
end