From: Bruno Haible Date: Sun, 13 Apr 2008 20:17:09 +0000 (+0200) Subject: Avoid a test failure on AIX 4 and AIX 5. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d691d788b854c64c3fef637b294da02a238a3e1;hp=33b602c44df79204ad59f2a3f160e5aae374a971;p=pspp Avoid a test failure on AIX 4 and AIX 5. --- 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; }