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:
parent
d88a0f13c2
commit
3666ceb729
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user