ruby-changes:39716
From: usa <ko1@a...>
Date: Tue, 8 Sep 2015 22:51:24 +0900 (JST)
Subject: [ruby-changes:39716] usa:r51797 (trunk): * test/ruby/test_file.rb (TestFile#test_realdirpath_junktion): test for r51790.
usa 2015-09-08 22:51:04 +0900 (Tue, 08 Sep 2015) New Revision: 51797 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51797 Log: * test/ruby/test_file.rb (TestFile#test_realdirpath_junktion): test for r51790. Modified files: trunk/test/ruby/test_file.rb Index: test/ruby/test_file.rb =================================================================== --- test/ruby/test_file.rb (revision 51796) +++ test/ruby/test_file.rb (revision 51797) @@ -296,6 +296,16 @@ class TestFile < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file.rb#L296 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], []) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/