X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-lchown.h;h=329b6deecbaee7dc830c44d211596ca93d39dc2e;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=229ed6b01baf9ce924159e430ada44a7a07a5b49;hpb=135351c549050196b5c1322b3ab1e956565ab3d8;p=gnulib.git diff --git a/tests/test-lchown.h b/tests/test-lchown.h index 229ed6b01..329b6deec 100644 --- a/tests/test-lchown.h +++ b/tests/test-lchown.h @@ -1,5 +1,5 @@ /* Tests of lchown. - Copyright (C) 2009-2011 Free Software Foundation, Inc. + Copyright (C) 2009-2014 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 @@ -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); - /* 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 ()); - if (result == -1 && errno == ENOSYS) + if (result == -1 && (errno == ENOSYS || errno == EPERM)) { ASSERT (rmdir (BASE "dir") == 0); if (print)