ruby-changes:48123
From: usa <ko1@a...>
Date: Sat, 21 Oct 2017 16:44:15 +0900 (JST)
Subject: [ruby-changes:48123] usa:r60237 (trunk): File.symlink is not potable
usa 2017-10-21 16:44:11 +0900 (Sat, 21 Oct 2017) New Revision: 60237 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60237 Log: File.symlink is not potable * test/fileutils/test_fileutils.rb: skip tests using File.symlink if it's not available. this problem is reported by ko1. Modified files: trunk/test/fileutils/test_fileutils.rb Index: test/fileutils/test_fileutils.rb =================================================================== --- test/fileutils/test_fileutils.rb (revision 60236) +++ test/fileutils/test_fileutils.rb (revision 60237) @@ -445,7 +445,7 @@ class TestFileUtils < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_fileutils.rb#L445 File.symlink 'tmp/src/dir', 'tmp/src/a' cp_r 'tmp/src', 'tmp/dest/', remove_destination: true cp_r 'tmp/src', 'tmp/dest/', remove_destination: true - end + end if have_symlink? def test_mv check_singleton :mv @@ -1453,7 +1453,7 @@ class TestFileUtils < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_fileutils.rb#L1453 touch 'tmp/src' copy_entry 'tmp/src', 'tmp/dest', false, false, true assert_file_exist 'tmp/dest' - end + end if have_symlink? def test_copy_file check_singleton :copy_file -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/