diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-05-05 21:01:07 +0200 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2022-05-25 20:09:59 -0700 |
| commit | 8b9f8e25bac80ae8f9ac6ee9cbb90540ad398787 (patch) | |
| tree | d77e8db840ed8a0c92a3394ef443ae2e6e506c65 /library/std/src/os/unix/net/tests.rs | |
| parent | f80e454450c891c075617d23532c6eb317f4471d (diff) | |
| download | rust-8b9f8e25bac80ae8f9ac6ee9cbb90540ad398787.tar.gz rust-8b9f8e25bac80ae8f9ac6ee9cbb90540ad398787.zip | |
Disable unix::net::ancillary on BSD.
Diffstat (limited to 'library/std/src/os/unix/net/tests.rs')
| -rw-r--r-- | library/std/src/os/unix/net/tests.rs | 41 |
1 files changed, 4 insertions, 37 deletions
diff --git a/library/std/src/os/unix/net/tests.rs b/library/std/src/os/unix/net/tests.rs index c1f11c56b8f..e4499f9b6a6 100644 --- a/library/std/src/os/unix/net/tests.rs +++ b/library/std/src/os/unix/net/tests.rs @@ -1,24 +1,7 @@ use super::*; use crate::io::prelude::*; use crate::io::{self, ErrorKind, IoSlice, IoSliceMut}; -#[cfg(any( - target_os = "android", - target_os = "dragonfly", - target_os = "emscripten", - target_os = "freebsd", - target_os = "linux", - target_os = "netbsd", - target_os = "openbsd", -))] -#[cfg(any( - target_os = "android", - target_os = "dragonfly", - target_os = "emscripten", - target_os = "freebsd", - target_os = "linux", - target_os = "netbsd", - target_os = "openbsd", -))] +#[cfg(any(target_os = "android", target_os = "linux"))] use crate::os::unix::io::AsRawFd; use crate::sys_common::io::test::tmpdir; use crate::thread; @@ -618,15 +601,7 @@ fn test_unix_datagram_peek_from() { assert_eq!(msg, &buf[..]); } -#[cfg(any( - target_os = "android", - target_os = "dragonfly", - target_os = "emscripten", - target_os = "freebsd", - target_os = "linux", - target_os = "netbsd", - target_os = "openbsd", -))] +#[cfg(any(target_os = "android", target_os = "linux"))] #[test] fn test_send_vectored_fds_unix_stream() { let (s1, s2) = or_panic!(UnixStream::pair()); @@ -664,7 +639,7 @@ fn test_send_vectored_fds_unix_stream() { } } -#[cfg(any(target_os = "android", target_os = "emscripten", target_os = "linux",))] +#[cfg(any(target_os = "android", target_os = "linux",))] #[test] fn test_send_vectored_with_ancillary_to_unix_datagram() { fn getpid() -> libc::pid_t { @@ -731,15 +706,7 @@ fn test_send_vectored_with_ancillary_to_unix_datagram() { } } -#[cfg(any( - target_os = "android", - target_os = "dragonfly", - target_os = "emscripten", - target_os = "freebsd", - target_os = "linux", - target_os = "netbsd", - target_os = "openbsd", -))] +#[cfg(any(target_os = "android", target_os = "linux"))] #[test] fn test_send_vectored_with_ancillary_unix_datagram() { let dir = tmpdir(); |
