diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 14:21:56 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 14:21:56 +0000 |
commit | 3666ceb729998a6149d335151517f56aef2eba74 (patch) | |
tree | 2e837adc3a9eb0553e5f7354dac1f33b04715c81 /test | |
parent | d88a0f13c2da49b4de8e6f0398f6c1b994c69800 (diff) | |
download | ruby-3666ceb729998a6149d335151517f56aef2eba74.tar.gz |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/fileutils/test_fileutils.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index dfe914dc69..25c0e30099 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -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 |