Repository navigation
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure I wrote this test earlier and templated this off the
chmod_workstest (if you look at lines 1699-1719 above). It does look redundant with theset_get_permissions_nofollowstest on how it creates a regular file and callsset_permissions_nofollowon that. However, the only difference I can say between the two is that this one is intentionally trying to useset_permissions_nofollowon a file that doesn't exist.Looking at it now, it's more like
set_get_permissions_nofollows(which I based offset_get_unix_permissions()earlier and somehow it evolved into being a cross-platform test instead of unix only) is a duplicate of this test since this test encapsulates that test's behavior and more. TheErrorKind::Unsupportederror on a regular file should only be reachable byhermit,vxworksandvexos, but I don't think CI tests for those, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to, you can remove the
set_get_permissions_nofollowstest to reduce bloat.