* tests/test-sethostname2.c (main): Treat errno EACCESS like EPERM.
+2021-01-20 Bruno Haible <bruno@clisp.org>
+
+ sethostname tests: Avoid test failure on Cygwin.
+ * tests/test-sethostname2.c (main): Treat errno EACCESS like EPERM.
+
2021-01-19 Paul Eggert <eggert@cs.ucla.edu>
fnmatch, regex, fts: FALLTHROUGH consistency
"Skipping test: sethostname is not really implemented.\n");
return 77;
}
- else if (rcs == -1 && errno == EPERM)
+ else if (rcs == -1
+ && (errno == EPERM
+ || errno == EACCES)) /* Cygwin */
{
fprintf (stderr, "Skipping test: insufficient permissions.\n");
return 77;