mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* 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
This commit is contained in:
parent
f0feb0a4f0
commit
db33b28cc3
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue