Repository navigation
fs::set_permissions_nofollow: Android support, test cleanup - #163548
Conversation
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use Why was this reviewer chosen?The reviewer was selected based on:
|
| } | ||
| } | ||
|
|
||
| // Only Windows and Unix support `fs::set_permissions_nofollow` |
There was a problem hiding this comment.
I can't make sense of this comment as the test above runs on everything except for Android.
@asder8215 what did you mean when writing this comment?
There was a problem hiding this comment.
This might be a stale comment that I forgot to change.
I think, at the time, I didn't have set_permissions_nofollow supported for wasi (since it didn't have fchmodat support, but pretty sure it works with the openat with no follow flag) or this test specifically didn't run on wasi.
Although technically, does this test may not run on wasi since I thought they use a different symlink create function, i.e. symlink_path. You might want to add an import to symlink_path as a symlink_file gated to wasi.
There was a problem hiding this comment.
Nothing else in this file seems to special-case wasi so we probably just don't run these tests there.
|
@bors try |
This comment has been minimized.
This comment has been minimized.
simplify and clarify fs::set_permissions_nofollow tests try-job: *various*
|
@bors try |
This comment has been minimized.
This comment has been minimized.
fs::set_permissions_nofollow: Android support, test cleanup try-job: *various* try-job: *android*
16a71a6 to
b500b0e
Compare
|
Looks like avoiding |
|
r? @clarfonthey |
b500b0e to
7bfad36
Compare
7bfad36 to
afc0663
Compare
| #[test] | ||
| #[cfg(all( | ||
| any(windows, unix), | ||
| not(any(target_os = "espidf", target_os = "horizon", target_os = "wasi")) |
There was a problem hiding this comment.
I assume this is why you wanted to run test-various as well? I guess it still works here, too?
There was a problem hiding this comment.
I observed that set_get_permissions_nofollows runs everywhere except android. That means the comment, "Only Windows and Unix support fs::set_permissions_nofollow", just does not make sense.
My guess is that some of these were disabled because e.g. espidf does not support symlinks. However the comment does not say that and there are other symlink tests in this file and they are not gating espidf. So I'd rather leave it to an espidf maintainer to add the necessary cfg everywhere in this file, with proper comments. Same for horizon. I have not the slightest idea why wasi was added here, that one actually has handling in the implementation so it really should work.
|
r=me assuming you actually can verify that the tests passed for espidf/horizon/wasi; small note. |
|
I can't verify this any other way than running CI. I think the above are all the relevant CI jobs? |
|
@bors r+ rollup All good then. |
…tests, r=clarfonthey fs::set_permissions_nofollow: Android support, test cleanup Tracking issue: rust-lang#141607 try-job: *various* try-job: *android*
…tests, r=clarfonthey fs::set_permissions_nofollow: Android support, test cleanup Tracking issue: rust-lang#141607 try-job: *various* try-job: *android*
Rollup of 18 pull requests Successful merges: - #158102 (When compiling without a specified `--edition`, emit a message) - #162027 (std: add `fs::rename_noreplace`) - #162761 (Lower attributes for functions without bodies) - #163161 (implement FCW for `rustc_allowed_through_unstable_modules` items) - #163613 (Tweak the rendering of "not general enough" errors on the old trait solver) - #162062 (core: fix the docs of PanicInfo::location) - #163140 (document safety requirements for atomic intrinsics) - #163342 (Don't imply incorrect things about `Global` in the docs of `System`) - #163445 (Add safety comments for alloc::str) - #163503 (Mark Rc strong/weak count methods must_use) - #163548 (fs::set_permissions_nofollow: Android support, test cleanup) - #163585 ([triagebot] Create `debugger_visualizer` assign group) - #163597 (Add `SplitPathsRef` implementation for motor to make std build) - #163602 (Move media & home dirs tests to fs tests.) - #163667 (Finalize changes on expect messages for library/core/src/fmt/mod.rs) - #163682 ([rustdoc] Correctly link to (imported) enum variants with "jump to def") - #163683 (Fix GCC codegen backend comment in bootstrap) - #163703 (Move more `rustdoc-html tests` in the right location) Failed merges: - #161491 (Rip out old solver coherence)
Rollup of 18 pull requests Successful merges: - #158102 (When compiling without a specified `--edition`, emit a message) - #162761 (Lower attributes for functions without bodies) - #163161 (implement FCW for `rustc_allowed_through_unstable_modules` items) - #163613 (Tweak the rendering of "not general enough" errors on the old trait solver) - #162062 (core: fix the docs of PanicInfo::location) - #163140 (document safety requirements for atomic intrinsics) - #163342 (Don't imply incorrect things about `Global` in the docs of `System`) - #163445 (Add safety comments for alloc::str) - #163503 (Mark Rc strong/weak count methods must_use) - #163548 (fs::set_permissions_nofollow: Android support, test cleanup) - #163585 ([triagebot] Create `debugger_visualizer` assign group) - #163597 (Add `SplitPathsRef` implementation for motor to make std build) - #163602 (Move media & home dirs tests to fs tests.) - #163667 (Finalize changes on expect messages for library/core/src/fmt/mod.rs) - #163682 ([rustdoc] Correctly link to (imported) enum variants with "jump to def") - #163683 (Fix GCC codegen backend comment in bootstrap) - #163703 (Move more `rustdoc-html tests` in the right location) - #163725 (some crashes fixed with next-solver) Failed merges: - #161491 (Rip out old solver coherence)
Tracking issue: #141607
try-job: various
try-job: android