Skip to content

Commit 3502c99

Browse files
committed
Ignore other failed uds tests
1 parent 8788741 commit 3502c99

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
@@ -436,6 +436,7 @@ fn abstract_namespace_not_allowed_connect() {
436436

437437
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
438438
#[test]
439+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin cannot bind to abstract addr
439440
fn test_abstract_stream_connect() {
440441
let msg1 = b"hello";
441442
let msg2 = b"world";
@@ -467,6 +468,7 @@ fn test_abstract_stream_connect() {
467468

468469
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
469470
#[test]
471+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin cannot bind to abstract addr
470472
fn test_abstract_stream_iter() {
471473
let addr = or_panic!(SocketAddr::from_abstract_name(b"hidden"));
472474
let listener = or_panic!(UnixListener::bind_addr(&addr));
@@ -489,6 +491,7 @@ fn test_abstract_stream_iter() {
489491

490492
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
491493
#[test]
494+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin cannot bind to abstract addr
492495
fn test_abstract_datagram_bind_send_to_addr() {
493496
let addr1 = or_panic!(SocketAddr::from_abstract_name(b"ns1"));
494497
let sock1 = or_panic!(UnixDatagram::bind_addr(&addr1));
@@ -510,6 +513,7 @@ fn test_abstract_datagram_bind_send_to_addr() {
510513

511514
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
512515
#[test]
516+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin cannot bind to abstract addr
513517
fn test_abstract_datagram_connect_addr() {
514518
let addr1 = or_panic!(SocketAddr::from_abstract_name(b"ns3"));
515519
let bsock1 = or_panic!(UnixDatagram::bind_addr(&addr1));
@@ -681,6 +685,7 @@ fn test_send_vectored_fds_unix_stream() {
681685
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
682686
#[test]
683687
#[cfg_attr(target_os = "android", ignore)] // Android SELinux rules prevent creating Unix sockets
688+
#[cfg_attr(target_os = "cygwin", ignore)] // Cygwin recvmsg doesn't support Unix sockets
684689
fn test_send_vectored_with_ancillary_to_unix_datagram() {
685690
fn getpid() -> libc::pid_t {
686691
unsafe { libc::getpid() }

0 commit comments

Comments
 (0)