зеркало из https://github.com/github/ruby.git
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3d9453994c
Коммит
2caaae0707
|
@ -445,7 +445,7 @@ class TestFileUtils < Test::Unit::TestCase
|
|||
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::TestCase
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче