strerror: relax test for Solaris
authorEric Blake <eblake@redhat.com>
Thu, 19 May 2011 16:17:18 +0000 (10:17 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 19 May 2011 16:17:18 +0000 (10:17 -0600)
commitd1187148b5871737463ac53328e6d20ec711afd7
tree7c494d95c0bb894f9062db7ad45dfab022876120
parent1608fbc0104136faf98fcd89416a6c2ab4bff692
strerror: relax test for Solaris

Solaris returns "Error 0" for 0 vs. "Unknown error" for -1; while that
does not quite have the positive connotation that POSIX recommends, it
is distinct enough that we do not need to replace the native strerror
just to pick a better string.

The test is really trying to reject implementations that use the same
string for both 0 and 1 (modulo any %d output of the error number).

* tests/test-strerror.c (main): Permit Solaris behavior.
* tests/test-strerror_r.c (main): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
tests/test-strerror.c
tests/test-strerror_r.c