From c2666e4b18f7fbf5be3544a655a2f6a8001f1b4d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 10 May 2005 12:59:44 +0000 Subject: Skip the test if the user running it has write access to `/'. --- tests/touch/not-owner | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/touch') diff --git a/tests/touch/not-owner b/tests/touch/not-owner index 49af6941b..c32547e66 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 -- cgit v1.2.3-54-g00ecf