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 51406da7ca..60de28f53d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/tests/test-getaddrinfo.c b/tests/test-getaddrinfo.c index 2f42bde873..ca7c62cd23 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.30.2