Reported by Ivan Zakharyaschev <imz@altlinux.org>.
* tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
alternative to ENOSYS.
* modules/lchown-tests (Depends-on): Add 'errno'.
* modules/fchownat-tests (Depends-on): Likewise.
+2018-12-19 Bruno Haible <bruno@clisp.org>
+
+ lchown tests: Be more permissive regarding errno values.
+ Reported by Ivan Zakharyaschev <imz@altlinux.org>.
+ * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
+ alternative to ENOSYS.
+ * modules/lchown-tests (Depends-on): Add 'errno'.
+ * modules/fchownat-tests (Depends-on): Likewise.
+
2018-12-18 Bruno Haible <bruno@clisp.org>
duplocale: Avoid test failure on AIX 7.
tests/macros.h
Depends-on:
+errno
ignore-value
intprops
mgetgroups
tests/macros.h
Depends-on:
+errno
ignore-value
intprops
mgetgroups
return 77;
}
result = func (BASE "dir/link2", -1, -1);
- if (result == -1 && errno == ENOSYS)
+ if (result == -1 && (errno == ENOSYS || errno == EOPNOTSUPP))
{
ASSERT (unlink (BASE "dir/file") == 0);
ASSERT (unlink (BASE "dir/link2") == 0);