projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-lchown, test-chown: also skip test if lchown/chown fails with EPERM
[gnulib.git]
/
tests
/
test-lchown.h
diff --git
a/tests/test-lchown.h
b/tests/test-lchown.h
index
d4e66e7
..
7a66c10
100644
(file)
--- a/
tests/test-lchown.h
+++ b/
tests/test-lchown.h
@@
-65,9
+65,9
@@
test_lchown (int (*func) (char const *, uid_t, gid_t), bool print)
ASSERT (mkdir (BASE "dir", 0700) == 0);
ASSERT (stat (BASE "dir", &st1) == 0);
ASSERT (mkdir (BASE "dir", 0700) == 0);
ASSERT (stat (BASE "dir", &st1) == 0);
- /* Filter out mingw
, which has
no concept of groups. */
+ /* Filter out mingw
and file systems which have
no concept of groups. */
result = func (BASE "dir", st1.st_uid, getegid ());
result = func (BASE "dir", st1.st_uid, getegid ());
- if (result == -1 &&
errno == ENOSYS
)
+ if (result == -1 &&
(errno == ENOSYS || errno == EPERM)
)
{
ASSERT (rmdir (BASE "dir") == 0);
if (print)
{
ASSERT (rmdir (BASE "dir") == 0);
if (print)