]> Savannah Git Hosting - gnulib.git/commitdiff
unlockpt tests: Avoid test failure on Haiku.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Sep 2024 11:32:40 +0000 (13:32 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 17 Sep 2024 11:26:13 +0000 (13:26 +0200)
* tests/test-unlockpt.c (main): Skip the test on Haiku.
* doc/posix-functions/unlockpt.texi: Update platforms list.

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

index c449ad522b6880f9d8ff87e593d6e15a877fcdb9..834ea0273569d44ed8021f00923f38530e368355 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-09-03  Bruno Haible  <bruno@clisp.org>
+
+       unlockpt tests: Avoid test failure on Haiku.
+       * tests/test-unlockpt.c (main): Skip the test on Haiku.
+       * doc/posix-functions/unlockpt.texi: Update platforms list.
+
 2024-09-02  Bruno Haible  <bruno@clisp.org>
 
        utime, futimens tests: Avoid test failure on Haiku.
index 2f5b3da6ef4148b1100a4f270270a6925e64d918..d696e5343c23659a7e0d5bfefa2956b85b6a85d8 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:
-NetBSD 5.1, Cygwin 1.7.9.
+NetBSD 5.1, Cygwin 1.7.9, Haiku.
 @end itemize
index 3a07006892aed50f2b7cc3bc08c788fbaa1ffaee..e69f72db9799ae95376ba9fc6daa92b71d2ce87c 100644 (file)
@@ -30,7 +30,7 @@ int
 main (void)
 {
   /* Test behaviour for invalid file descriptors.  */
-#if !defined __NetBSD__ /* known bug on NetBSD 5.1 */
+#if !(defined __NetBSD__ || defined __HAIKU__) /* known bug on NetBSD 5.1, Haiku */
   {
     errno = 0;
     ASSERT (unlockpt (-1) == -1);