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