changeset 9896:a7d135e1e80a

Avoid test failure on IRIX.
author Bruno Haible <bruno@clisp.org>
date Sat, 12 Apr 2008 02:34:33 +0200
parents 771f59094fca
children ebc67bd296ad
files ChangeLog tests/test-getaddrinfo.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/tests/test-getaddrinfo.c
+++ b/tests/test-getaddrinfo.c
@@ -54,6 +54,10 @@
 
   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)