@@ -289,6 +289,7 @@ fn test_unix_datagram() {
289
289
290
290
#[ test]
291
291
#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
292
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin autobinds an address
292
293
fn test_unnamed_unix_datagram ( ) {
293
294
let dir = tmpdir ( ) ;
294
295
let path1 = dir. path ( ) . join ( "sock1" ) ;
@@ -301,12 +302,14 @@ fn test_unnamed_unix_datagram() {
301
302
let mut buf = [ 0 ; 11 ] ;
302
303
let ( usize, addr) = or_panic ! ( sock1. recv_from( & mut buf) ) ;
303
304
assert_eq ! ( usize , 11 ) ;
305
+ println ! ( "{:?}" , addr) ;
304
306
assert ! ( addr. is_unnamed( ) ) ;
305
307
assert_eq ! ( msg, & buf[ ..] ) ;
306
308
}
307
309
308
310
#[ test]
309
311
#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
312
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin fails to determine the addr type from recvfrom
310
313
fn test_unix_datagram_connect_to_recv_addr ( ) {
311
314
let dir = tmpdir ( ) ;
312
315
let path1 = dir. path ( ) . join ( "sock1" ) ;
@@ -332,6 +335,7 @@ fn test_unix_datagram_connect_to_recv_addr() {
332
335
333
336
#[ test]
334
337
#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
338
+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin autobinds an address
335
339
fn test_connect_unix_datagram ( ) {
336
340
let dir = tmpdir ( ) ;
337
341
let path1 = dir. path ( ) . join ( "sock1" ) ;
0 commit comments