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 cc22442..5708a23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
 
        * modules/getaddrinfo-tests (Makefile.am): Define
index 00a980b..2f42bde 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)