Repository navigation
nplb: Skip hard link tests where link() is forbidden - #13270
Merged
Merged
Conversation
PosixLinkTest.SuccessfulCreation and PosixFileGetInfoTest.ReportsHardLinkCount need link() to succeed, but Android's SELinux policy denies apps the link permission on their own data files, so on AOSP link() fails with EACCES and both tests were excluded. Skip when link() fails with EACCES and remove both tests from the AOSP filters. Bug: 532068409
Contributor
|
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the POSIX compliance tests PosixFileGetInfoTest.ReportsHardLinkCount and PosixLinkTest.SuccessfulCreation to gracefully skip when hard links are not permitted (returning EACCES), which is common under Android's SELinux policy. Consequently, these tests are re-enabled by removing them from the Evergreen ARM and ARM64 AOSP test filters. The review feedback recommends adhering to the Chromium C++ style guide by using C++ standard library headers (<cerrno> and <cstring>) instead of C-style headers, and prefixing standard library functions like strerror with the std:: namespace.
sacuff
approved these changes
Oct 9, 2026
briantting
pushed a commit
that referenced
this pull request
Oct 13, 2026
…bidden Refer to original PR: #13270 PosixLinkTest.SuccessfulCreation and PosixFileGetInfoTest.ReportsHardLinkCount need link() to succeed, but Android's SELinux policy denies apps the link permission on their own data files, so on AOSP link() fails with EACCES and both tests were excluded. Skip when link() fails with EACCES and remove both tests from the AOSP filters. Bug: 532068409 (cherry picked from commit 6c0220c)
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
…bidden Refer to original PR: #13270 PosixLinkTest.SuccessfulCreation and PosixFileGetInfoTest.ReportsHardLinkCount need link() to succeed, but Android's SELinux policy denies apps the link permission on their own data files, so on AOSP link() fails with EACCES and both tests were excluded. Skip when link() fails with EACCES and remove both tests from the AOSP filters. Bug: 532068409 (cherry picked from commit 6c0220c)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PosixLinkTest.SuccessfulCreation and PosixFileGetInfoTest.ReportsHardLinkCount need link() to succeed, but Android's SELinux policy denies apps the link permission on their own data files, so on AOSP link() fails with EACCES and both tests were excluded.
Skip when link() fails with EACCES and remove both tests from the AOSP filters.
Bug: 532068409