Skip to content

Skip test_rm_r_no_permissions test under root #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/fileutils/test_fileutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ def test_rm_r_pathname
def test_rm_r_no_permissions
check_singleton :rm_rf

return if /mswin|mingw/ =~ RUBY_PLATFORM
return if Process.uid == 0 || /mswin|mingw/ =~ RUBY_PLATFORM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we'll need to consider capabilities as well.

Suggested change
return if Process.uid == 0 || /mswin|mingw/ =~ RUBY_PLATFORM
return if root_in_posix?


mkdir 'tmpdatadir'
touch 'tmpdatadir/tmpdata'
Expand Down