Skip to content

Commit

Permalink
Disable *connect_sendto* tests on FreeBSD and illumos.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Nov 30, 2023
1 parent 72cf313 commit b8d9f73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/net/dgram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ fn net_dgram_v6_bind_any() {
assert_eq!(request, &response[..n]);
}

/// Test `sendto` with calling `connect`.
/// Test `sendto` with calling `connect`, on platforms which support that.
#[cfg(not(any(target_os = "freebsd", target_os = "illumos")))]
#[test]
fn net_dgram_v4_connect_sendto() {
let localhost = IpAddr::V4(Ipv4Addr::LOCALHOST);
Expand Down Expand Up @@ -414,6 +415,7 @@ fn net_dgram_v4_sendto() {
}

/// Similar, but with V6.
#[cfg(not(any(target_os = "freebsd", target_os = "illumos")))]
#[test]
fn net_dgram_v6_connect_sendto() {
let localhost = IpAddr::V6(Ipv6Addr::LOCALHOST);
Expand Down Expand Up @@ -502,7 +504,8 @@ fn net_dgram_v6_sendto() {
assert_eq!(peer_addr.ip(), local_addr.ip());
}

/// Test `sendto_any` with calling connect.
/// Test `sendto_any` with calling connect, on platforms which support that.
#[cfg(not(any(target_os = "freebsd", target_os = "illumos")))]
#[test]
fn net_dgram_v4_connect_sendto_any() {
let localhost = IpAddr::V4(Ipv4Addr::LOCALHOST);
Expand Down Expand Up @@ -586,6 +589,7 @@ fn net_dgram_v4_sendto_any() {
}

/// Similar, but with V6.
#[cfg(not(any(target_os = "freebsd", target_os = "illumos")))]
#[test]
fn net_dgram_v6_connect_sendto_any() {
let localhost = IpAddr::V6(Ipv6Addr::LOCALHOST);
Expand Down

0 comments on commit b8d9f73

Please sign in to comment.