test-perror: check for strerror interactions
authorEric Blake <eblake@redhat.com>
Fri, 20 May 2011 16:42:26 +0000 (10:42 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 20 May 2011 17:29:22 +0000 (11:29 -0600)
commitc0fb797b4075b0e5f93207d4df1704aa6615cac0
treef5c26dba170a0f6156ce9375c8e70b01f9ea379c
parent98c78cdfd3685675c0ebdd157778656877b2eec4
test-perror: check for strerror interactions

This uncovered a glibc bug, although not many people check for
perror failures, so for now I'm not working around it.
http://sourceware.org/bugzilla/show_bug.cgi?id=12792

* tests/macros.h (STREQ) Add macro.
* modules/perror-tests (Files): Add second test.
* tests/test-perror2.c (main): New file.
* doc/posix-functions/perror.texi (perror): Document glibc bug.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/posix-functions/perror.texi
modules/perror-tests
tests/macros.h
tests/test-perror2.c [new file with mode: 0644]