mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Make tests quieter on local dns resolver failure
This commit is contained in:
parent
4558ce2322
commit
e996b3d411
@ -979,7 +979,7 @@ test_evutil_getaddrinfo(void *arg)
|
|||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
r = evutil_getaddrinfo("1.2.3.4", "http", &hints, &ai);
|
r = evutil_getaddrinfo("1.2.3.4", "http", &hints, &ai);
|
||||||
if (r!=0) {
|
if (r!=0) {
|
||||||
TT_GRIPE(("Symbolic service names seem broken."));
|
TT_DECLARE("SKIP", ("Symbolic service names seem broken."));
|
||||||
} else {
|
} else {
|
||||||
tt_assert(ai);
|
tt_assert(ai);
|
||||||
test_ai_eq(ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP);
|
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;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
r = evutil_getaddrinfo("www.google.com", "80", &hints, &ai);
|
r = evutil_getaddrinfo("www.google.com", "80", &hints, &ai);
|
||||||
if (r != 0) {
|
if (r != 0) {
|
||||||
TT_GRIPE(("Couldn't resolve www.google.com"));
|
TT_DECLARE("SKIP", ("Couldn't resolve www.google.com"));
|
||||||
} else {
|
} else {
|
||||||
tt_assert(ai);
|
tt_assert(ai);
|
||||||
tt_int_op(ai->ai_family, ==, PF_INET);
|
tt_int_op(ai->ai_family, ==, PF_INET);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user