]> Savannah Git Hosting - gnulib.git/commitdiff
unlockpt tests: Avoid test failure on NetBSD 5.1.
authorBruno Haible <bruno@clisp.org>
Wed, 21 Sep 2011 10:43:20 +0000 (12:43 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 21 Sep 2011 10:43:20 +0000 (12:43 +0200)
* tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
* doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.

ChangeLog
doc/posix-functions/unlockpt.texi
tests/test-unlockpt.c

index f03898566ea01d06159531fce022d193c7cebfbe..d808c871ac95192115b007ac71ffddfaa4b034b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index 2545660064a0ceecbbe825b012d5c0fac81746c7..898754d91f1bd81cd4e5eeaac34d0f4f6f09c382 100644 (file)
@@ -17,5 +17,5 @@ Portability problems not fixed by Gnulib:
 @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
index e7861ea75f5bfc5b5c4b4cd72cb559b92295ba9b..4717e7d83bb2c6b0c7eee789216e88b1dcadf51b 100644 (file)
@@ -29,6 +29,7 @@ int
 main (void)
 {
   /* Test behaviour for invalid file descriptors.  */
+#if !defined __NetBSD__ /* known bug on NetBSD 5.1 */
   {
     errno = 0;
     ASSERT (unlockpt (-1) == -1);
@@ -43,6 +44,7 @@ main (void)
             || errno == EINVAL /* seen on FreeBSD 6.4 */
            );
   }
+#endif
 
   return 0;
 }