* 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:
nobu 2012-05-02 14:55:53 +00:00
parent f0feb0a4f0
commit db33b28cc3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed May 2 23:55:51 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::RequireFiles#non_options): expand
real path to get rid of loading same files via symlinks.
Wed May 2 23:26:04 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* cont.c (rb_fiber_m_transfer): improve sample code in Fiber#transfer

View File

@ -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