From 840a72fbd52197e443efe413650ef3556cfcee60 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Thu, 29 Jul 2010 20:32:40 -0400 Subject: [PATCH] Fix badly-behaved subtest of dns/bufferevent_connect_hostname The bufferevent_connect_hostname test was specifying AF_INET, but the gethostbyname test we were using to see what error to expect was using PF_UNSPEC, leading to possible divergence of results. --- test/regress_dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regress_dns.c b/test/regress_dns.c index c2ea8c3f..deee766e 100644 --- a/test/regress_dns.c +++ b/test/regress_dns.c @@ -1087,7 +1087,7 @@ test_bufferevent_connect_hostname(void *arg) * example.com is real.) Let's see what answer to expect. */ struct evutil_addrinfo hints, *ai = NULL; memset(&hints, 0, sizeof(hints)); - hints.ai_family = PF_UNSPEC; + hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; expect_err5 = evutil_getaddrinfo(