]> granicus.if.org Git - libevent/commitdiff
Make tests quieter on local dns resolver failure
authorNick Mathewson <nickm@torproject.org>
Thu, 5 Aug 2010 19:51:16 +0000 (15:51 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 5 Aug 2010 19:51:16 +0000 (15:51 -0400)
test/regress_util.c

index 65f6e544a8d214723bf14e0540ad91d9dcc45d14..acfdf91be732e1b8aa3e540d4d292809e9f81512 100644 (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);