diff options
author | Jonah Petri <jonah@petri.us> | 2021-12-07 16:57:52 -0500 |
---|---|---|
committer | Jonah Petri <jonah@petri.us> | 2022-01-24 10:06:35 -0500 |
commit | 6c4b9133f14d4488dc1b86411568b49e99fbe629 (patch) | |
tree | ec06e25f28ac2f989b1af4408d00407b9e548258 /test/sys | |
parent | ae2b7b3552f3b800ab0f5e92dad06cd2e7df25e6 (diff) | |
download | nix-6c4b9133f14d4488dc1b86411568b49e99fbe629.zip |
uclibc support
Diffstat (limited to 'test/sys')
-rw-r--r-- | test/sys/mod.rs | 2 | ||||
-rw-r--r-- | test/sys/test_aio_drop.rs | 1 | ||||
-rw-r--r-- | test/sys/test_uio.rs | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/test/sys/mod.rs b/test/sys/mod.rs index 60904bd1..91c0aae7 100644 --- a/test/sys/mod.rs +++ b/test/sys/mod.rs @@ -7,7 +7,7 @@ mod test_signal; // cases on DragonFly. #[cfg(any(target_os = "freebsd", target_os = "ios", - target_os = "linux", + all(target_os = "linux", not(target_env = "uclibc")), target_os = "macos", target_os = "netbsd"))] mod test_aio; diff --git a/test/sys/test_aio_drop.rs b/test/sys/test_aio_drop.rs index 71a2183b..f9ff97af 100644 --- a/test/sys/test_aio_drop.rs +++ b/test/sys/test_aio_drop.rs @@ -4,6 +4,7 @@ #[test] #[should_panic(expected = "Dropped an in-progress AioCb")] #[cfg(all(not(target_env = "musl"), + not(target_env = "uclibc"), any(target_os = "linux", target_os = "ios", target_os = "macos", diff --git a/test/sys/test_uio.rs b/test/sys/test_uio.rs index c63b5810..5353c516 100644 --- a/test/sys/test_uio.rs +++ b/test/sys/test_uio.rs @@ -204,7 +204,7 @@ fn test_preadv() { } #[test] -#[cfg(target_os = "linux")] +#[cfg(all(target_os = "linux", not(target_env = "uclibc")))] // uclibc doesn't implement process_vm_readv // qemu-user doesn't implement process_vm_readv/writev on most arches #[cfg_attr(qemu, ignore)] fn test_process_vm_readv() { |