Skip to content

Conversation

jiajia123-wind
Copy link

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

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?

@jiajia123-wind jiajia123-wind force-pushed the fix-skip-test-root branch 2 times, most recently from f735182 to 955c0dc Compare July 23, 2025 03:18
Skip the test_rm_r_no_permissions test under the root user, as deletion always succeeds.

Signed-off-by: Jiaying Song <[email protected]>
@jiajia123-wind
Copy link
Author

@nobu Thank you for your suggestion. Is this modification correct?

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