bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] strerror_r-posix: port to cygwin


From: Bruno Haible
Subject: Re: [PATCH] strerror_r-posix: port to cygwin
Date: Mon, 7 Feb 2011 22:36:34 +0100
User-agent: KMail/1.9.9

Hi Eric,

> --- a/tests/test-strerror_r.c
> +++ b/tests/test-strerror_r.c
> @@ -74,8 +74,8 @@ main (void)
>          if (ret == 0)
>            {
>              /* Truncated result.  POSIX allows this, and it actually
> -               happens on AIX 6.1.  */
> -            ASSERT (strcmp (buf, "BADFACE") != 0);
> +               happens on AIX 6.1 and Cygwin.  */
> +            ASSERT ((strcmp (buf, "BADFACE") == 0) == (i == 0));
>            }
>          else
>            {

This is fine. I confirm that the test still passes on AIX 6.1.
(Apparently it used this code path only for i > 0.)

Bruno
-- 
In memoriam Hatun Sürücü <http://en.wikipedia.org/wiki/Hatun_Sürücü>

reply via email to

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