From c2666e4b18f7fbf5be3544a655a2f6a8001f1b4d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 10 May 2005 12:59:44 +0000 Subject: [PATCH] Skip the test if the user running it has write access to `/'. --- tests/touch/not-owner | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.3