Avoid a test failure on AIX 4 and AIX 5.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2008 20:17:09 +0000 (22:17 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Apr 2008 20:17:09 +0000 (22:17 +0200)
ChangeLog
tests/test-getaddrinfo.c

index 51406da..60de28f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-04-13  Bruno Haible  <bruno@clisp.org>
 
+       * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
+
+2008-04-13  Bruno Haible  <bruno@clisp.org>
+
        Fix AIX compilation failure introduced on 2008-04-02.
        * tests/test-frexp.c (exp): Undefine before redefining.
        * tests/test-frexpl.c (exp): Likewise.
index 2f42bde..ca7c62c 100644 (file)
@@ -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;
     }