summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorJonah Petri <jonah@petri.us>2021-12-07 16:57:52 -0500
committerJonah Petri <jonah@petri.us>2022-01-24 10:06:35 -0500
commit6c4b9133f14d4488dc1b86411568b49e99fbe629 (patch)
treeec06e25f28ac2f989b1af4408d00407b9e548258 /test/sys
parentae2b7b3552f3b800ab0f5e92dad06cd2e7df25e6 (diff)
downloadnix-6c4b9133f14d4488dc1b86411568b49e99fbe629.zip
uclibc support
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/mod.rs2
-rw-r--r--test/sys/test_aio_drop.rs1
-rw-r--r--test/sys/test_uio.rs2
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() {