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

Conversation

jiajia123-wind
Copy link

Skip the test_rm_r_no_permissions test under the root user, as deletion always succeeds.

Skip the test_rm_r_no_permissions test under the root user, as deletion always succeeds.

Signed-off-by: Jiaying Song <[email protected]>
@@ -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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants