[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:
parent
7c784f0a67
commit
073f3b7e0a
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user