Skip to content

Commit 306b6a0

Browse files
committed
Ignore other failed uds tests
1 parent 6b4c8c6 commit 306b6a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/std/src/os/unix/net/tests.rs

+5
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ fn abstract_namespace_not_allowed_connect() {
428428

429429
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
430430
#[test]
431+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin cannot bind to abstract addr
431432
fn test_abstract_stream_connect() {
432433
let msg1 = b"hello";
433434
let msg2 = b"world";
@@ -459,6 +460,7 @@ fn test_abstract_stream_connect() {
459460

460461
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
461462
#[test]
463+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin cannot bind to abstract addr
462464
fn test_abstract_stream_iter() {
463465
let addr = or_panic!(SocketAddr::from_abstract_name(b"hidden"));
464466
let listener = or_panic!(UnixListener::bind_addr(&addr));
@@ -481,6 +483,7 @@ fn test_abstract_stream_iter() {
481483

482484
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
483485
#[test]
486+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin cannot bind to abstract addr
484487
fn test_abstract_datagram_bind_send_to_addr() {
485488
let addr1 = or_panic!(SocketAddr::from_abstract_name(b"ns1"));
486489
let sock1 = or_panic!(UnixDatagram::bind_addr(&addr1));
@@ -502,6 +505,7 @@ fn test_abstract_datagram_bind_send_to_addr() {
502505

503506
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
504507
#[test]
508+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin cannot bind to abstract addr
505509
fn test_abstract_datagram_connect_addr() {
506510
let addr1 = or_panic!(SocketAddr::from_abstract_name(b"ns3"));
507511
let bsock1 = or_panic!(UnixDatagram::bind_addr(&addr1));
@@ -673,6 +677,7 @@ fn test_send_vectored_fds_unix_stream() {
673677
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
674678
#[test]
675679
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets
680+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin recvmsg doesn't support Unix sockets
676681
fn test_send_vectored_with_ancillary_to_unix_datagram() {
677682
fn getpid() -> libc::pid_t {
678683
unsafe { libc::getpid() }

0 commit comments

Comments
 (0)