diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 07:44:11 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 07:44:11 +0000 |
commit | 2caaae0707ce0ed9920512f54329ae8e4a0c1018 (patch) | |
tree | 86742f6a08fa27d53d0a5c482aaa2f4cb7ee24f9 /test | |
parent | 3d9453994c965abff8851d008a01b40153ffee77 (diff) | |
download | ruby-2caaae0707ce0ed9920512f54329ae8e4a0c1018.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/fileutils/test_fileutils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 1efc371c55..dfe914dc69 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -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 |