From 88d96a4fa9388e5228bb515a766c0bb697142415 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 8 Sep 2015 13:51:04 +0000 Subject: * 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 --- test/ruby/test_file.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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], []) -- cgit v1.2.3