1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_cp_preserve_permissions should care about umask

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2017-10-21 14:21:56 +00:00
parent d88a0f13c2
commit 3666ceb729

View file

@ -308,7 +308,8 @@ class TestFileUtils < Test::Unit::TestCase
touch 'tmp/cptmp'
chmod 0755, 'tmp/cptmp'
cp 'tmp/cptmp', 'tmp/cptmp2'
assert_equal_filemode('tmp/cptmp', 'tmp/cptmp2', bug4507)
assert_equal_filemode('tmp/cptmp', 'tmp/cptmp2', bug4507, ~File.umask)
end
def test_cp_preserve_permissions_dir