tests: fix test_nwrap_gethostbyname2 - magrathea now has an IPv6 address
authorMichael Adam <obnox@samba.org>
Mon, 9 Nov 2015 12:40:08 +0000 (13:40 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 12 Nov 2015 10:42:33 +0000 (11:42 +0100)
This should have been caught before, but the failure of this test
seems to have been uncovered by a seemingly unrelated change to
the code. (Always set ed->ed_tail = ed when initializing a new ed).

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
tests/test_gethostby_name_addr.c

index de9008285a494542b85648c8e0b12a80be7ace5d..cb55c06b3a8335a645526311bec2070f321d483a 100644 (file)
@@ -161,7 +161,7 @@ static void test_nwrap_gethostbyname2(void **state)
        (void) state; /* unused */
 
        he = gethostbyname2("magrathea.galaxy.site", AF_INET6);
-       assert_null(he);
+       assert_non_null(he);
 
        he = gethostbyname2("magrathea.galaxy.site", AF_INET);
        assert_non_null(he);