bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getaddrinfo test: ignore failure on IRIX


From: Simon Josefsson
Subject: Re: getaddrinfo test: ignore failure on IRIX
Date: Sat, 12 Apr 2008 11:02:21 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Bruno Haible <address@hidden> writes:

> 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:

Thanks for testing it.  Could we maybe limit the workaround to IRIX?
Then we'll get reports for other platforms that also may not support
https.  Knowing which those platforms are may be useful.  Or what do you
think?  I'm not sure.

/Simon

> 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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]