Avoid test failure on IRIX.
authorBruno Haible <bruno@clisp.org>
Sat, 12 Apr 2008 00:34:33 +0000 (02:34 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 12 Apr 2008 00:34:33 +0000 (02:34 +0200)
ChangeLog
tests/test-getaddrinfo.c

index cc224423e4a7bbfd71fca47107c07da62d34dcc3..5708a23ed5b9cc6f33cc4da8bb5d34ffa2b74d09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-11  Bruno Haible  <bruno@clisp.org>
+
+       * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
+
 2008-04-11  Bruno Haible  <bruno@clisp.org>
 
        * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
index 00a980b1bda2dc3e97e1d6406e89fbeb1b6c4913..2f42bde87347709b860dab058c99f0284b2e8f7c 100644 (file)
@@ -54,6 +54,10 @@ int simple (char *host, char *service)
 
   if (res != 0)
     {
+      /* IRIX reports EAI_NONAME for "https".  Don't fail the test
+        merely because of this.  */
+      if (res == EAI_NONAME)
+       return 0;
       /* Solaris reports EAI_SERVICE for "http" and "https".  Don't
          fail the test merely because of this.  */
       if (res == EAI_SERVICE)