Make tests quieter on local dns resolver failure

This commit is contained in:
Nick Mathewson 2010-08-05 15:51:16 -04:00
parent 4558ce2322
commit e996b3d411

View File

@ -979,7 +979,7 @@ test_evutil_getaddrinfo(void *arg)
hints.ai_socktype = SOCK_STREAM;
r = evutil_getaddrinfo("1.2.3.4", "http", &hints, &ai);
if (r!=0) {
TT_GRIPE(("Symbolic service names seem broken."));
TT_DECLARE("SKIP", ("Symbolic service names seem broken."));
} else {
tt_assert(ai);
test_ai_eq(ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP);
@ -994,7 +994,7 @@ test_evutil_getaddrinfo(void *arg)
hints.ai_socktype = SOCK_STREAM;
r = evutil_getaddrinfo("www.google.com", "80", &hints, &ai);
if (r != 0) {
TT_GRIPE(("Couldn't resolve www.google.com"));
TT_DECLARE("SKIP", ("Couldn't resolve www.google.com"));
} else {
tt_assert(ai);
tt_int_op(ai->ai_family, ==, PF_INET);