From 6d691d788b854c64c3fef637b294da02a238a3e1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 13 Apr 2008 22:17:09 +0200 Subject: [PATCH] Avoid a test failure on AIX 4 and AIX 5. --- ChangeLog | 4 ++++ tests/test-getaddrinfo.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 51406da7c..60de28f53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-04-13 Bruno Haible + * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error. + +2008-04-13 Bruno Haible + Fix AIX compilation failure introduced on 2008-04-02. * tests/test-frexp.c (exp): Undefine before redefining. * tests/test-frexpl.c (exp): Likewise. diff --git a/tests/test-getaddrinfo.c b/tests/test-getaddrinfo.c index 2f42bde87..ca7c62cd2 100644 --- a/tests/test-getaddrinfo.c +++ b/tests/test-getaddrinfo.c @@ -62,6 +62,10 @@ int simple (char *host, char *service) fail the test merely because of this. */ if (res == EAI_SERVICE) return 0; + /* AIX reports EAI_NODATA for "https". Don't fail the test + merely because of this. */ + if (res == EAI_NODATA) + return 0; return 1; } -- 2.11.0