From 2caaae0707ce0ed9920512f54329ae8e4a0c1018 Mon Sep 17 00:00:00 2001 From: usa Date: Sat, 21 Oct 2017 07:44:11 +0000 Subject: [PATCH] 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 --- test/fileutils/test_fileutils.rb | 4 ++-- 1 file 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