We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b184b83 commit 957929dCopy full SHA for 957929d
tests/fs/statx.rs
@@ -11,7 +11,11 @@ fn test_statx_unknown_flags() {
11
unsafe { StatxFlags::from_bits_unchecked(!0 & !linux_raw_sys::general::STATX__RESERVED) };
12
13
// It's also ok to pass such flags to `statx`.
14
- let result = rustix::fs::statx(&f, "Cargo.toml", AtFlags::empty(), too_many_flags).unwrap();
+ let result = match rustix::fs::statx(&f, "Cargo.toml", AtFlags::empty(), too_many_flags) {
15
+ // If we don't have `statx` at all, skip the rest of this test.
16
+ Err(rustix::io::Errno::NOSYS) => return,
17
+ otherwise => otherwise.unwrap(),
18
+ };
19
20
// But, rustix should mask off bits it doesn't recognize, because these
21
// extra flags may tell future kernels to set extra fields beyond the
0 commit comments