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 | 650900b9051d9b6454b6bf491bb73065bd53bfb6 (patch) | |
tree | 5120f87586fc89e4785adf0c160c3491e115c810 /test/ruby | |
parent | 355bab2d5a0c012ef356199cfd3ec37183a88d23 (diff) | |
download | ruby-650900b9051d9b6454b6bf491bb73065bd53bfb6.tar.gz |
* 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
Diffstat (limited to 'test/ruby')
-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], []) |