* tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
* doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
+2011-09-21 Bruno Haible <bruno@clisp.org>
+
+ unlockpt tests: Avoid test failure on NetBSD 5.1.
+ * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
+ * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
+
2011-09-21 Bruno Haible <bruno@clisp.org>
getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
@itemize
@item
This function reports success for invalid file descriptors on some platforms:
-Cygwin 1.7.9.
+NetBSD 5.1, Cygwin 1.7.9.
@end itemize
main (void)
{
/* Test behaviour for invalid file descriptors. */
+#if !defined __NetBSD__ /* known bug on NetBSD 5.1 */
{
errno = 0;
ASSERT (unlockpt (-1) == -1);
|| errno == EINVAL /* seen on FreeBSD 6.4 */
);
}
+#endif
return 0;
}