summaryrefslogtreecommitdiff
blob: 29edb0f566d34aa875ff0da5f1c569276f9f0cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
this will always fail as root

http://bugs.gentoo.org/180412

--- find/testsuite/find.gnu/fprint-unwritable.exp
+++ find/testsuite/find.gnu/fprint-unwritable.exp
@@ -3,5 +3,12 @@
 file mkdir tmp
 exec touch tmp/unwritable
 exec chmod 444 tmp/unwritable
-find_start f { tmp -fprint tmp/unwritable }
-exec rm -rf tmp
+if [ file readable tmp/unwritable ] {
+    # On Cygwin, a user with admin rights can read all files, and 
+    # access(foo,R_OK) correctly returns 1 for all files.
+    warning "You have superuser privileges, skipping this test."
+    untested {skipping this test because you have superuser privileges}
+} else {
+    find_start f { tmp -fprint tmp/unwritable }
+    exec rm -rf tmp
+}