mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_file.rb (TestFile#test_realdirpath_junktion): test for r51790.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a8b2dec5e5
commit
88d96a4fa9
1 changed files with 10 additions and 0 deletions
|
@ -296,6 +296,16 @@ class TestFile < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_realdirpath_junktion
|
||||
Dir.mktmpdir('rubytest-realpath') {|tmpdir|
|
||||
Dir.chdir(tmpdir) do
|
||||
Dir.mkdir('foo')
|
||||
skip "cannot run mklink" unless system('mklink /j bar foo > nul')
|
||||
assert_equal(File.realpath('foo'), File.realpath('bar'))
|
||||
end
|
||||
}
|
||||
end if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
|
||||
def test_utime_with_minus_time_segv
|
||||
bug5596 = '[ruby-dev:44838]'
|
||||
assert_in_out_err([], <<-EOS, [bug5596], [])
|
||||
|
|
Loading…
Add table
Reference in a new issue