@@ -289,6 +289,7 @@ fn test_unix_datagram() {
289289
290290#[ test]
291291#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
292+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin autobinds an address
292293fn test_unnamed_unix_datagram ( ) {
293294 let dir = tmpdir ( ) ;
294295 let path1 = dir. path ( ) . join ( "sock1" ) ;
@@ -301,12 +302,14 @@ fn test_unnamed_unix_datagram() {
301302 let mut buf = [ 0 ; 11 ] ;
302303 let ( usize, addr) = or_panic ! ( sock1. recv_from( & mut buf) ) ;
303304 assert_eq ! ( usize , 11 ) ;
305+ println ! ( "{:?}" , addr) ;
304306 assert ! ( addr. is_unnamed( ) ) ;
305307 assert_eq ! ( msg, & buf[ ..] ) ;
306308}
307309
308310#[ test]
309311#[ 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
310313fn test_unix_datagram_connect_to_recv_addr ( ) {
311314 let dir = tmpdir ( ) ;
312315 let path1 = dir. path ( ) . join ( "sock1" ) ;
@@ -332,6 +335,7 @@ fn test_unix_datagram_connect_to_recv_addr() {
332335
333336#[ test]
334337#[ cfg_attr( target_os = "android" , ignore) ] // Android SELinux rules prevent creating Unix sockets
338+ #[ cfg_attr( target_os = "cygwin" , ignore) ] // Cygwin autobinds an address
335339fn test_connect_unix_datagram ( ) {
336340 let dir = tmpdir ( ) ;
337341 let path1 = dir. path ( ) . join ( "sock1" ) ;
0 commit comments