summaryrefslogtreecommitdiff
path: root/lib/test/unit.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-02 14:55:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-02 14:55:53 +0000
commitdb33b28cc3f990d50cb869729f4eaca2ad1ece5e (patch)
tree9cf11abadf72121d3636fd8ca1fee9840029d246 /lib/test/unit.rb
parentf0feb0a4f024f8763763005937c664ef3013a595 (diff)
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): expand
real path to get rid of loading same files via symlinks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r--lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index 311d758a81..ac15a95b07 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -228,7 +228,7 @@ module Test
return false if !super
result = false
files.each {|f|
- d = File.dirname(path = File.expand_path(f))
+ d = File.dirname(path = File.realpath(f))
unless $:.include? d
$: << d
end