From 3666ceb729998a6149d335151517f56aef2eba74 Mon Sep 17 00:00:00 2001 From: kosaki Date: Sat, 21 Oct 2017 14:21:56 +0000 Subject: [PATCH] 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 --- test/fileutils/test_fileutils.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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