diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 07:19:38 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 07:19:38 +0000 |
commit | 2696fb950391fb74685caf0484f130430d2d2146 (patch) | |
tree | 849b750fc75f8476aa779c86bfa5ac389e18cc00 /test/runner.rb | |
parent | 52c7036436f8cd5255103e37dde0720a997eec63 (diff) |
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.rb | 2 |
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 |