[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getaddrinfo test: ignore failure on IRIX
From: |
Bruno Haible |
Subject: |
getaddrinfo test: ignore failure on IRIX |
Date: |
Sat, 12 Apr 2008 02:34:15 +0200 |
User-agent: |
KMail/1.5.4 |
On IRIX 6.5, the test-getaddrinfo fails like this:
Finding www.ibm.com service https...
res -2: Name or service not known
FAIL: test-getaddrinfo
Since there is already code to ignore a failure on Solaris, the same failure
on IRIX (with a more POSIX compliant error code!) should be ignored as well.
I'm applying this:
2008-04-11 Bruno Haible <address@hidden>
* tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
*** tests/test-getaddrinfo.c.orig 2008-04-12 02:29:54.000000000 +0200
--- tests/test-getaddrinfo.c 2008-04-12 02:26:40.000000000 +0200
***************
*** 54,59 ****
--- 54,63 ----
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)
- getaddrinfo test: ignore failure on IRIX,
Bruno Haible <=