@@ -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" ) ;
@@ -425,7 +429,7 @@ fn abstract_namespace_not_allowed_connect() {
425
429
assert ! ( UnixStream :: connect( "\0 asdf" ) . is_err( ) ) ;
426
430
}
427
431
428
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
432
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
429
433
#[ test]
430
434
fn test_abstract_stream_connect ( ) {
431
435
let msg1 = b"hello" ;
@@ -456,7 +460,7 @@ fn test_abstract_stream_connect() {
456
460
thread. join ( ) . unwrap ( ) ;
457
461
}
458
462
459
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
463
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
460
464
#[ test]
461
465
fn test_abstract_stream_iter ( ) {
462
466
let addr = or_panic ! ( SocketAddr :: from_abstract_name( b"hidden" ) ) ;
@@ -478,7 +482,7 @@ fn test_abstract_stream_iter() {
478
482
thread. join ( ) . unwrap ( ) ;
479
483
}
480
484
481
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
485
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
482
486
#[ test]
483
487
fn test_abstract_datagram_bind_send_to_addr ( ) {
484
488
let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns1" ) ) ;
@@ -499,7 +503,7 @@ fn test_abstract_datagram_bind_send_to_addr() {
499
503
assert_eq ! ( addr. as_abstract_name( ) . unwrap( ) , b"ns1" ) ;
500
504
}
501
505
502
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
506
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
503
507
#[ test]
504
508
fn test_abstract_datagram_connect_addr ( ) {
505
509
let addr1 = or_panic ! ( SocketAddr :: from_abstract_name( b"ns3" ) ) ;
@@ -524,7 +528,7 @@ fn test_abstract_datagram_connect_addr() {
524
528
or_panic ! ( bsock2. recv_from( & mut buf) ) ;
525
529
}
526
530
527
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
531
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
528
532
#[ test]
529
533
fn test_abstract_name_too_long ( ) {
530
534
match SocketAddr :: from_abstract_name (
@@ -538,7 +542,7 @@ fn test_abstract_name_too_long() {
538
542
}
539
543
}
540
544
541
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
545
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
542
546
#[ test]
543
547
fn test_abstract_no_pathname_and_not_unnamed ( ) {
544
548
let name = b"local" ;
@@ -669,7 +673,7 @@ fn test_send_vectored_fds_unix_stream() {
669
673
}
670
674
}
671
675
672
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
676
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "cygwin" ) ) ]
673
677
#[ test]
674
678
#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
675
679
fn test_send_vectored_with_ancillary_to_unix_datagram ( ) {
0 commit comments