* tests/test-access.h (test_access): On Cygwin, don't test for the
absence of the W_OK permission.
+2024-05-23 Bruno Haible <bruno@clisp.org>
+
+ access, euidaccess tests: Avoid test failures on Cygwin.
+ * tests/test-access.h (test_access): On Cygwin, don't test for the
+ absence of the W_OK permission.
+
2024-05-23 Bruno Haible <bruno@clisp.org>
c32is*, c32toupper tests: Avoid test failures on Cygwin.
ASSERT (func (BASE "f2", R_OK) == 0);
+ /* On Cygwin, for users that are in the 'Administrators' group,
+ W_OK is allowed. */
+#if !defined __CYGWIN__
if (geteuid () != ROOT_UID)
{
errno = 0;
ASSERT (func (BASE "f2", W_OK) == -1);
ASSERT (errno == EACCES);
}
+#endif
#if defined _WIN32 && !defined __CYGWIN__
/* X_OK works like R_OK. */