mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2026-10-24 00:48:56 +03:00
unlinkat tests: Avoid a test failure on Haiku.
* tests/test-rmdir.h (test_rmdir_func): Accept EPERM error.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user