@@ -427,6 +427,7 @@ fn abstract_namespace_not_allowed_connect() {
427
427
428
428
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
429
429
#[ test]
430
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin cannot bind to abstract addr
430
431
fn test_abstract_stream_connect ( ) {
431
432
let msg1 = b"hello" ;
432
433
let msg2 = b"world" ;
@@ -458,6 +459,7 @@ fn test_abstract_stream_connect() {
458
459
459
460
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
460
461
#[ test]
462
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin cannot bind to abstract addr
461
463
fn test_abstract_stream_iter ( ) {
462
464
let addr = or_panic ! ( SocketAddr :: from_abstract_name( b"hidden" ) ) ;
463
465
let listener = or_panic ! ( UnixListener :: bind_addr( & addr) ) ;
@@ -480,6 +482,7 @@ fn test_abstract_stream_iter() {
480
482
481
483
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
482
484
#[ test]
485
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin cannot bind to abstract addr
483
486
fn test_abstract_datagram_bind_send_to_addr ( ) {
484
487
let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns1" ) ) ;
485
488
let sock1 = or_panic ! ( UnixDatagram :: bind_addr( & addr1) ) ;
@@ -501,6 +504,7 @@ fn test_abstract_datagram_bind_send_to_addr() {
501
504
502
505
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
503
506
#[ test]
507
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin cannot bind to abstract addr
504
508
fn test_abstract_datagram_connect_addr ( ) {
505
509
let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns3" ) ) ;
506
510
let bsock1 = or_panic ! ( UnixDatagram :: bind_addr( & addr1) ) ;
@@ -672,6 +676,7 @@ fn test_send_vectored_fds_unix_stream() {
672
676
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
673
677
#[ test]
674
678
#[ 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
675
680
fn test_send_vectored_with_ancillary_to_unix_datagram ( ) {
676
681
fn getpid ( ) -> libc:: pid_t {
677
682
unsafe { libc:: getpid ( ) }
0 commit comments