From: Jim Meyering Date: Tue, 10 May 2005 12:59:44 +0000 (+0000) Subject: Skip the test if the user running it has write access to `/'. X-Git-Tag: CPPI-1_12~841 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2666e4b18f7fbf5be3544a655a2f6a8001f1b4d;p=thirdparty%2Fcoreutils.git Skip the test if the user running it has write access to `/'. --- diff --git a/tests/touch/not-owner b/tests/touch/not-owner index 49af6941b5..c32547e666 100755 --- a/tests/touch/not-owner +++ b/tests/touch/not-owner @@ -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