@@ -436,6 +436,7 @@ fn abstract_namespace_not_allowed_connect() {
436
436
437
437
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
438
438
#[ test]
439
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin cannot bind to abstract addr
439
440
fn test_abstract_stream_connect ( ) {
440
441
let msg1 = b"hello" ;
441
442
let msg2 = b"world" ;
@@ -467,6 +468,7 @@ fn test_abstract_stream_connect() {
467
468
468
469
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
469
470
#[ test]
471
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin cannot bind to abstract addr
470
472
fn test_abstract_stream_iter ( ) {
471
473
let addr = or_panic ! ( SocketAddr :: from_abstract_name( b"hidden" ) ) ;
472
474
let listener = or_panic ! ( UnixListener :: bind_addr( & addr) ) ;
@@ -489,6 +491,7 @@ fn test_abstract_stream_iter() {
489
491
490
492
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
491
493
#[ test]
494
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin cannot bind to abstract addr
492
495
fn test_abstract_datagram_bind_send_to_addr ( ) {
493
496
let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns1" ) ) ;
494
497
let sock1 = or_panic ! ( UnixDatagram :: bind_addr( & addr1) ) ;
@@ -510,6 +513,7 @@ fn test_abstract_datagram_bind_send_to_addr() {
510
513
511
514
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
512
515
#[ test]
516
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin cannot bind to abstract addr
513
517
fn test_abstract_datagram_connect_addr ( ) {
514
518
let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns3" ) ) ;
515
519
let bsock1 = or_panic ! ( UnixDatagram :: bind_addr( & addr1) ) ;
@@ -681,6 +685,7 @@ fn test_send_vectored_fds_unix_stream() {
681
685
#[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
682
686
#[ test]
683
687
#[ 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
684
689
fn test_send_vectored_with_ancillary_to_unix_datagram ( ) {
685
690
fn getpid ( ) -> libc:: pid_t {
686
691
unsafe { libc:: getpid ( ) }
0 commit comments