@@ -170,6 +170,7 @@ fn long_path() {
170
170
#[ test]
171
171
#[ cfg( not( target_os = "nto" ) ) ]
172
172
#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
173
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin ignores timeout
173
174
fn timeouts ( ) {
174
175
let dir = tmpdir ( ) ;
175
176
let socket_path = dir. path ( ) . join ( "sock" ) ;
@@ -198,6 +199,7 @@ fn timeouts() {
198
199
199
200
#[ test]
200
201
#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
202
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin ignores timeout
201
203
fn test_read_timeout ( ) {
202
204
let dir = tmpdir ( ) ;
203
205
let socket_path = dir. path ( ) . join ( "sock" ) ;
@@ -218,6 +220,7 @@ fn test_read_timeout() {
218
220
219
221
#[ test]
220
222
#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
223
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin ignores timeout
221
224
fn test_read_with_timeout ( ) {
222
225
let dir = tmpdir ( ) ;
223
226
let socket_path = dir. path ( ) . join ( "sock" ) ;
@@ -246,6 +249,7 @@ fn test_read_with_timeout() {
246
249
// when passed zero Durations
247
250
#[ test]
248
251
#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
252
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin ignores timeout
249
253
fn test_unix_stream_timeout_zero_duration ( ) {
250
254
let dir = tmpdir ( ) ;
251
255
let socket_path = dir. path ( ) . join ( "sock" ) ;
@@ -416,7 +420,7 @@ fn abstract_namespace_not_allowed_connect() {
416
420
assert ! ( UnixStream :: connect( "\0 asdf" ) . is_err( ) ) ;
417
421
}
418
422
419
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
423
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
420
424
#[ test]
421
425
fn test_abstract_stream_connect ( ) {
422
426
let msg1 = b"hello" ;
@@ -447,7 +451,7 @@ fn test_abstract_stream_connect() {
447
451
thread. join ( ) . unwrap ( ) ;
448
452
}
449
453
450
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
454
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
451
455
#[ test]
452
456
fn test_abstract_stream_iter ( ) {
453
457
let addr = or_panic ! ( SocketAddr :: from_abstract_name( b"hidden" ) ) ;
@@ -469,7 +473,7 @@ fn test_abstract_stream_iter() {
469
473
thread. join ( ) . unwrap ( ) ;
470
474
}
471
475
472
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
476
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
473
477
#[ test]
474
478
fn test_abstract_datagram_bind_send_to_addr ( ) {
475
479
let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns1" ) ) ;
@@ -490,7 +494,7 @@ fn test_abstract_datagram_bind_send_to_addr() {
490
494
assert_eq ! ( addr. as_abstract_name( ) . unwrap( ) , b"ns1" ) ;
491
495
}
492
496
493
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
497
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
494
498
#[ test]
495
499
fn test_abstract_datagram_connect_addr ( ) {
496
500
let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns3" ) ) ;
@@ -515,7 +519,7 @@ fn test_abstract_datagram_connect_addr() {
515
519
or_panic ! ( bsock2. recv_from( & mut buf) ) ;
516
520
}
517
521
518
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
522
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
519
523
#[ test]
520
524
fn test_abstract_name_too_long ( ) {
521
525
match SocketAddr :: from_abstract_name (
@@ -529,7 +533,7 @@ fn test_abstract_name_too_long() {
529
533
}
530
534
}
531
535
532
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
536
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
533
537
#[ test]
534
538
fn test_abstract_no_pathname_and_not_unnamed ( ) {
535
539
let name = b"local" ;
@@ -660,7 +664,7 @@ fn test_send_vectored_fds_unix_stream() {
660
664
}
661
665
}
662
666
663
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
667
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
664
668
#[ test]
665
669
#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
666
670
fn test_send_vectored_with_ancillary_to_unix_datagram ( ) {
0 commit comments