diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-08 13:51:04 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-08 13:51:04 +0000 |
commit | 88d96a4fa9388e5228bb515a766c0bb697142415 (patch) | |
tree | 5120f87586fc89e4785adf0c160c3491e115c810 | |
parent | a8b2dec5e5ad73569a02ae59d6a64fc0a0de7fd0 (diff) |
* 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
-rw-r--r-- | test/ruby/test_file.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index d7507b4661..ba11ede12d 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -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], []) |