Skip to content

Commit 3c83138

Browse files
Skip test_rm_r_no_permissions test under root
Skip the test_rm_r_no_permissions test under the root user, as deletion always succeeds. Signed-off-by: Jiaying Song <[email protected]>
1 parent 7e03db6 commit 3c83138

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
@@ -769,7 +769,7 @@ def test_rm_r_pathname
769769
def test_rm_r_no_permissions
770770
check_singleton :rm_rf
771771

772-
return if /mswin|mingw/ =~ RUBY_PLATFORM
772+
return if /mswin|mingw/ =~ RUBY_PLATFORM || root_in_posix?
773773

774774
mkdir 'tmpdatadir'
775775
touch 'tmpdatadir/tmpdata'

0 commit comments

Comments
 (0)