From 6c4b9133f14d4488dc1b86411568b49e99fbe629 Mon Sep 17 00:00:00 2001 From: Jonah Petri Date: Tue, 7 Dec 2021 16:57:52 -0500 Subject: uclibc support --- test/sys/mod.rs | 2 +- test/sys/test_aio_drop.rs | 1 + test/sys/test_uio.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'test/sys') 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() { -- cgit v1.2.3