]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Skip the test if the user running it has write access to `/'.
authorJim Meyering <jim@meyering.net>
Tue, 10 May 2005 12:59:44 +0000 (12:59 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 10 May 2005 12:59:44 +0000 (12:59 +0000)
tests/touch/not-owner

index 49af6941b56c0d9132ea105b10c0e0f76a99798e..c32547e666686e0815bc5376b57ae61b8d352484 100755 (executable)
@@ -25,6 +25,11 @@ if test $framework_failure = 1; then
   (exit 1); exit 1
 fi
 
+if test -w /; then
+  echo Skipping because you have write access to /.
+  (exit 77); exit 77
+fi
+
 fail=0
 
 # Before fileutils-4.1, we'd get the following misleading