@@ -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" ) ;
@@ -416,7 +420,7 @@ fn abstract_namespace_not_allowed_connect() {
416420 assert ! ( UnixStream :: connect( "\0 asdf" ) . is_err( ) ) ;
417421}
418422
419- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
423+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
420424#[ test]
421425fn test_abstract_stream_connect ( ) {
422426 let msg1 = b"hello" ;
@@ -447,7 +451,7 @@ fn test_abstract_stream_connect() {
447451 thread. join ( ) . unwrap ( ) ;
448452}
449453
450- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
454+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
451455#[ test]
452456fn test_abstract_stream_iter ( ) {
453457 let addr = or_panic ! ( SocketAddr :: from_abstract_name( b"hidden" ) ) ;
@@ -469,7 +473,7 @@ fn test_abstract_stream_iter() {
469473 thread. join ( ) . unwrap ( ) ;
470474}
471475
472- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
476+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
473477#[ test]
474478fn test_abstract_datagram_bind_send_to_addr ( ) {
475479 let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns1" ) ) ;
@@ -490,7 +494,7 @@ fn test_abstract_datagram_bind_send_to_addr() {
490494 assert_eq ! ( addr. as_abstract_name( ) . unwrap( ) , b"ns1" ) ;
491495}
492496
493- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
497+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
494498#[ test]
495499fn test_abstract_datagram_connect_addr ( ) {
496500 let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns3" ) ) ;
@@ -515,7 +519,7 @@ fn test_abstract_datagram_connect_addr() {
515519 or_panic ! ( bsock2. recv_from( & mut buf) ) ;
516520}
517521
518- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
522+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
519523#[ test]
520524fn test_abstract_name_too_long ( ) {
521525 match SocketAddr :: from_abstract_name (
@@ -529,7 +533,7 @@ fn test_abstract_name_too_long() {
529533 }
530534}
531535
532- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
536+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
533537#[ test]
534538fn test_abstract_no_pathname_and_not_unnamed ( ) {
535539 let name = b"local" ;
@@ -660,7 +664,7 @@ fn test_send_vectored_fds_unix_stream() {
660664 }
661665}
662666
663- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
667+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
664668#[ test]
665669#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
666670fn test_send_vectored_with_ancillary_to_unix_datagram ( ) {
0 commit comments