aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_exception.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-21 07:29:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-21 07:29:20 +0000
commitdb73f13e10e0f2d0da1f8e18f2739c586156575f (patch)
treed26aaf1f7a35f7714142c027e24711f5696ae89d /test/ruby/test_exception.rb
parent93001aebd311ad8ec07e1a219bd153540c6429e0 (diff)
downloadruby-db73f13e10e0f2d0da1f8e18f2739c586156575f.tar.gz
load.c: real path to load
* load.c (rb_construct_expanded_load_path): expand load paths to real paths to get rid of duplicate loading from symbolic-linked directories. [Feature #10222] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r--test/ruby/test_exception.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index 6955118de7..bcad728789 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -1019,7 +1019,7 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status|
warning = nil
path = nil
Tempfile.create(%w[circular .rb]) do |t|
- path = t.path
+ path = File.realpath(t.path)
basename = File.basename(path)
t.puts "require '#{basename}'"
t.close