Skip to content

Commit e0b30bf

Browse files
committed
Ignore other failed uds tests
1 parent b4d345c commit e0b30bf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ fn abstract_namespace_not_allowed_connect() {
427427

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

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

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

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

0 commit comments

Comments
 (0)