summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2022-06-06 18:50:19 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2022-06-06 18:50:19 -0500
commit80f8320ffd9caf64542916a63f986ba1f95e4613 (patch)
tree91ccd5e2dc7d2d06aa783bb76cc6ccbef992dadd /test
parent5dedbc7850448ae3922ab0a833f3eb971bf7e25f (diff)
downloadnix-80f8320ffd9caf64542916a63f986ba1f95e4613.zip
Cleanup cfg blocks
Remove obsolete references to target_env = wasi, target_os = nacl, target_os = osx, and a typo'd target_os = fushsia that didn't compile when fixed. - target_env = wasi is dead: https://github.com/rust-lang/rust/pull/60117 - target_os = nacl is dead: https://github.com/rust-lang/rust/pull/45041 - target_os = osx is dead, but I can't find a link.
Diffstat (limited to 'test')
-rw-r--r--test/sys/test_sockopt.rs3
-rw-r--r--test/test_fcntl.rs4
2 files changed, 3 insertions, 4 deletions
diff --git a/test/sys/test_sockopt.rs b/test/sys/test_sockopt.rs
index 4f75e178..a17bc09f 100644
--- a/test/sys/test_sockopt.rs
+++ b/test/sys/test_sockopt.rs
@@ -170,8 +170,7 @@ fn test_so_tcp_keepalive() {
#[cfg(any(target_os = "android",
target_os = "dragonfly",
target_os = "freebsd",
- target_os = "linux",
- target_os = "nacl"))] {
+ target_os = "linux"))] {
let x = getsockopt(fd, sockopt::TcpKeepIdle).unwrap();
setsockopt(fd, sockopt::TcpKeepIdle, &(x + 1)).unwrap();
assert_eq!(getsockopt(fd, sockopt::TcpKeepIdle).unwrap(), x + 1);
diff --git a/test/test_fcntl.rs b/test/test_fcntl.rs
index ebfc43e2..5f2e53bd 100644
--- a/test/test_fcntl.rs
+++ b/test/test_fcntl.rs
@@ -462,7 +462,7 @@ mod linux_android {
target_os = "android",
target_os = "emscripten",
target_os = "fuchsia",
- any(target_os = "wasi", target_env = "wasi"),
+ target_os = "wasi",
target_env = "uclibc",
target_os = "freebsd"))]
mod test_posix_fadvise {
@@ -495,7 +495,7 @@ mod test_posix_fadvise {
target_os = "dragonfly",
target_os = "emscripten",
target_os = "fuchsia",
- any(target_os = "wasi", target_env = "wasi"),
+ target_os = "wasi",
target_os = "freebsd"))]
mod test_posix_fallocate {