Skip to content

Commit d6c2ab2

Browse files
committed
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.
1 parent 332025b commit d6c2ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/fileutils/test_fileutils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@ def test_rm_rf
17901790
return if /mswin|mingw/ =~ RUBY_PLATFORM
17911791

17921792
mkdir 'tmpdatadir'
1793-
chmod 0o700, 'tmpdatadir'
1793+
chmod 0o000, 'tmpdatadir'
17941794
rm_rf 'tmpdatadir'
17951795

17961796
assert_file_not_exist 'tmpdatadir'

0 commit comments

Comments
 (0)