Skip to content

Commit

Permalink
Enable Socket::set_broadcast test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Feb 25, 2023
1 parent a23db24 commit 9236736
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ where
assert_eq!(flags & libc::FD_CLOEXEC != 0, want, "CLOEXEC option");
}

#[cfg(all(windows, feature = "all"))]
#[cfg(all(feature = "all", windows))]
#[test]
fn set_no_inherit() {
let socket = Socket::new(Domain::IPV4, Type::STREAM, None).unwrap();
Expand Down Expand Up @@ -1212,7 +1212,6 @@ test!(IPv4 tos, set_tos(96));
)))]
test!(IPv4 recv_tos, set_recv_tos(true));

#[cfg(not(windows))] // TODO: returns `WSAENOPROTOOPT` (10042) on Windows.
test!(IPv4 broadcast, set_broadcast(true));

test!(IPv6 unicast_hops_v6, set_unicast_hops_v6(20));
Expand Down

0 comments on commit 9236736

Please sign in to comment.