ruby-changes:48167
From: kosaki <ko1@a...>
Date: Sat, 21 Oct 2017 23:21:59 +0900 (JST)
Subject: [ruby-changes:48167] kosaki:r60281 (trunk): test_cp_preserve_permissions should care about umask
kosaki 2017-10-21 23:21:56 +0900 (Sat, 21 Oct 2017) New Revision: 60281 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60281 Log: test_cp_preserve_permissions should care about umask Modified files: trunk/test/fileutils/test_fileutils.rb Index: test/fileutils/test_fileutils.rb =================================================================== --- test/fileutils/test_fileutils.rb (revision 60280) +++ test/fileutils/test_fileutils.rb (revision 60281) @@ -308,7 +308,8 @@ class TestFileUtils < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/fileutils/test_fileutils.rb#L308 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/