5 #include <support/check.h>
10 struct addrinfo hints
, *res
;
14 for (i
= 0; i
< 100; i
++)
16 memset (&hints
, 0, sizeof (hints
));
17 hints
.ai_family
= PF_UNSPEC
;
18 hints
.ai_socktype
= SOCK_STREAM
;
20 ret
= getaddrinfo ("www.gnu.org", "http", &hints
, &res
);
23 FAIL_EXIT1 ("%s\n", gai_strerror (ret
));
30 #include <support/test-driver.c>