mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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.
d6c2ab2c01
This commit is contained in:
parent
7c784f0a67
commit
073f3b7e0a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue