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 51406da7ca6b722f1fb3445fce7f16f09bd96d2f..60de28f53d00f0d7568aebd7a8d1f2e99d3bb4fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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.
index 2f42bde87347709b860dab058c99f0284b2e8f7c..ca7c62cd23739b59f24b656c691b694f31fba500 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;
     }