+2024-05-23 Bruno Haible <bruno@clisp.org>
+
+ readlinkat, areadlinkat: Avoid test failures on Cygwin 3.4.6.
+ * tests/test-readlink.h (test_readlink): For an empty file name, allow
+ errno == EBADF.
+ * tests/test-areadlink.h (test_areadlink): Likewise.
+
2024-05-22 Bruno Haible <bruno@clisp.org>
iconv: Reject the broken macOS 14.4 iconv implementation.
/* Tests of areadlink and friends.
- Copyright (C) 2009-2023 Free Software Foundation, Inc.
+ Copyright (C) 2009-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
ASSERT (errno == ENOENT);
errno = 0;
ASSERT (func ("", 1) == NULL);
- ASSERT (errno == ENOENT || errno == EINVAL);
+ ASSERT (errno == ENOENT || errno == EINVAL
+ || errno == EBADF /* Cygwin < 3.5 */);
errno = 0;
ASSERT (func (".", 1) == NULL);
ASSERT (errno == EINVAL);
/* Tests of readlink.
- Copyright (C) 2009-2023 Free Software Foundation, Inc.
+ Copyright (C) 2009-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
ASSERT (errno == ENOENT);
errno = 0;
ASSERT (func ("", buf, sizeof buf) == -1);
- ASSERT (errno == ENOENT || errno == EINVAL);
+ ASSERT (errno == ENOENT || errno == EINVAL
+ || errno == EBADF /* Cygwin < 3.5 */);
errno = 0;
ASSERT (func (".", buf, sizeof buf) == -1);
ASSERT (errno == EINVAL);