# HG changeset patch # User Bernhard Voelker # Date 1369176830 -7200 # Node ID ca833590a92c3f2c6ade73e88193c73848c78195 # Parent 4ba10f4eb755fd86d3e840b2ef9f99f834d3f94a test-lchown, test-chown: also skip test if lchown/chown fails with EPERM These tests abort on FAT file systems right after the test for filtering out situation without ownership support; errno is EPERM in such a case. * tests/test-lchown.h (test_lchown): Add EPERM to the condition to skip this test. * tests/test-chown.h (test_chown): Likewise. diff -r 4ba10f4eb755 -r ca833590a92c ChangeLog --- a/ChangeLog Sun May 19 14:26:05 2013 -0700 +++ b/ChangeLog Wed May 22 00:53:50 2013 +0200 @@ -1,3 +1,10 @@ +2013-05-22 Bernhard Voelker + + test-lchown, test-chown: also skip test if chown fails with EPERM + * tests/test-lchown.h (test_lchown): Add EPERM to the condition to + skip this test, to handle FAT file systems. + * tests/test-chown.h (test_chown): Likewise. + 2013-05-19 Paul Eggert regex: fix dfa race in multithreaded uses diff -r 4ba10f4eb755 -r ca833590a92c tests/test-chown.h --- a/tests/test-chown.h Sun May 19 14:26:05 2013 -0700 +++ b/tests/test-chown.h Wed May 22 00:53:50 2013 +0200 @@ -57,9 +57,9 @@ 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) diff -r 4ba10f4eb755 -r ca833590a92c tests/test-lchown.h --- a/tests/test-lchown.h Sun May 19 14:26:05 2013 -0700 +++ b/tests/test-lchown.h Wed May 22 00:53:50 2013 +0200 @@ -65,9 +65,9 @@ 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)