]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
unlinkat tests: Avoid a test failure on Haiku.
authorBruno Haible <bruno@clisp.org>
Sat, 17 Jan 2026 11:42:56 +0000 (12:42 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 17 Jan 2026 11:42:56 +0000 (12:42 +0100)
* tests/test-rmdir.h (test_rmdir_func): Accept EPERM error.

ChangeLog
tests/test-rmdir.h

index c013b8e60e35b60b84afd0290278d4a4e2a3574c..75db85a35da17cdc7b487c3168ad11db11bcccec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-01-17  Bruno Haible  <bruno@clisp.org>
+
+       unlinkat tests: Avoid a test failure on Haiku.
+       * tests/test-rmdir.h (test_rmdir_func): Accept EPERM error.
+
 2026-01-16  Bruno Haible  <bruno@clisp.org>
 
        fenv-exceptions-state-c99: Avoid a Haiku crash dialog at configure time.
index 5fd5cf656484aa4c22ca2dcf52fd2ab7d10801c4..d0711470646bb25d8c5705c81f9ca4190f0c8c99 100644 (file)
@@ -41,7 +41,8 @@ test_rmdir_func (int (*func) (char const *name), bool print)
   ASSERT (errno == ENOENT);
   errno = 0;
   ASSERT (func (".") == -1);
-  ASSERT (errno == EINVAL || errno == EBUSY);
+  ASSERT (errno == EINVAL || errno == EBUSY
+          || errno == EPERM /* Haiku */);
   /* Resulting errno after ".." or "/" is too varied to test; it is
      reasonable to see any of EINVAL, EBUSY, EEXIST, ENOTEMPTY,
      EACCES, EPERM.  */