X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-strerror_r.c;h=b2fdaf92688d6621207dc3620936c4db4415ed74;hb=264ebf0e8b8760ee5434d35a3a9b0d3bc4810eb7;hp=6af4e98032ff6fa42f6f73cd025546fdbefaf888;hpb=5ca7d7be7307631cc8074d85422fbcde4326f07b;p=gnulib.git diff --git a/tests/test-strerror_r.c b/tests/test-strerror_r.c index 6af4e9803..b2fdaf926 100644 --- a/tests/test-strerror_r.c +++ b/tests/test-strerror_r.c @@ -1,5 +1,5 @@ /* Test of strerror_r() function. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2011 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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 {