@@ -170,6 +170,7 @@ fn long_path() {
170170#[ test]
171171#[ cfg( not( target_os = "nto" ) ) ]
172172#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
173+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin ignores timeout
173174fn timeouts ( ) {
174175 let dir = tmpdir ( ) ;
175176 let socket_path = dir. path ( ) . join ( "sock" ) ;
@@ -198,6 +199,7 @@ fn timeouts() {
198199
199200#[ test]
200201#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
202+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin ignores timeout
201203fn test_read_timeout ( ) {
202204 let dir = tmpdir ( ) ;
203205 let socket_path = dir. path ( ) . join ( "sock" ) ;
@@ -218,6 +220,7 @@ fn test_read_timeout() {
218220
219221#[ test]
220222#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
223+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin ignores timeout
221224fn test_read_with_timeout ( ) {
222225 let dir = tmpdir ( ) ;
223226 let socket_path = dir. path ( ) . join ( "sock" ) ;
@@ -246,6 +249,7 @@ fn test_read_with_timeout() {
246249// when passed zero Durations
247250#[ test]
248251#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
252+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin ignores timeout
249253fn test_unix_stream_timeout_zero_duration ( ) {
250254 let dir = tmpdir ( ) ;
251255 let socket_path = dir. path ( ) . join ( "sock" ) ;
@@ -425,7 +429,7 @@ fn abstract_namespace_not_allowed_connect() {
425429 assert ! ( UnixStream :: connect( "\0 asdf" ) . is_err( ) ) ;
426430}
427431
428- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
432+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
429433#[ test]
430434fn test_abstract_stream_connect ( ) {
431435 let msg1 = b"hello" ;
@@ -456,7 +460,7 @@ fn test_abstract_stream_connect() {
456460 thread. join ( ) . unwrap ( ) ;
457461}
458462
459- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
463+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
460464#[ test]
461465fn test_abstract_stream_iter ( ) {
462466 let addr = or_panic ! ( SocketAddr :: from_abstract_name( b"hidden" ) ) ;
@@ -478,7 +482,7 @@ fn test_abstract_stream_iter() {
478482 thread. join ( ) . unwrap ( ) ;
479483}
480484
481- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
485+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
482486#[ test]
483487fn test_abstract_datagram_bind_send_to_addr ( ) {
484488 let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns1" ) ) ;
@@ -499,7 +503,7 @@ fn test_abstract_datagram_bind_send_to_addr() {
499503 assert_eq ! ( addr. as_abstract_name( ) . unwrap( ) , b"ns1" ) ;
500504}
501505
502- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
506+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
503507#[ test]
504508fn test_abstract_datagram_connect_addr ( ) {
505509 let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns3" ) ) ;
@@ -524,7 +528,7 @@ fn test_abstract_datagram_connect_addr() {
524528 or_panic ! ( bsock2. recv_from( & mut buf) ) ;
525529}
526530
527- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
531+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
528532#[ test]
529533fn test_abstract_name_too_long ( ) {
530534 match SocketAddr :: from_abstract_name (
@@ -538,7 +542,7 @@ fn test_abstract_name_too_long() {
538542 }
539543}
540544
541- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
545+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
542546#[ test]
543547fn test_abstract_no_pathname_and_not_unnamed ( ) {
544548 let name = b"local" ;
@@ -669,7 +673,7 @@ fn test_send_vectored_fds_unix_stream() {
669673 }
670674}
671675
672- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
676+ #[ 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
675679fn test_send_vectored_with_ancillary_to_unix_datagram ( ) {
0 commit comments