[ruby/fileutils] Fix the test permission of "test_rm_rf"

The test was added for [Bug #6756]. The ticket insisted
`FileUtils.rm_rf` should delete an empty directory even if its
permission is 000. However, the test tried to delete a directory with
permission 700.

https://github.com/ruby/fileutils/commit/d6c2ab2c01
This commit is contained in:
Yusuke Endoh 2022-07-26 21:17:30 +09:00 committed by git
parent 7c784f0a67
commit 073f3b7e0a

View File

@ -1798,7 +1798,7 @@ cd -
return if /mswin|mingw/ =~ RUBY_PLATFORM
mkdir 'tmpdatadir'
chmod 0o700, 'tmpdatadir'
chmod 0o000, 'tmpdatadir'
rm_rf 'tmpdatadir'
assert_file_not_exist 'tmpdatadir'