From: Bruno Haible Date: Sat, 12 Apr 2008 00:34:33 +0000 (+0200) Subject: Avoid test failure on IRIX. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb5e025dd6fc3ff5888f138ce3dd7d94b5883358;p=pspp Avoid test failure on IRIX. --- diff --git a/ChangeLog b/ChangeLog index cc224423e4..5708a23ed5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-04-11 Bruno Haible + + * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error. + 2008-04-11 Bruno Haible * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD. diff --git a/tests/test-getaddrinfo.c b/tests/test-getaddrinfo.c index 00a980b1bd..2f42bde873 100644 --- a/tests/test-getaddrinfo.c +++ b/tests/test-getaddrinfo.c @@ -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)