summaryrefslogtreecommitdiff
path: root/tests/touch/not-owner
diff options
context:
space:
mode:
Diffstat (limited to 'tests/touch/not-owner')
-rwxr-xr-xtests/touch/not-owner5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/touch/not-owner b/tests/touch/not-owner
index 0723eade2..3f133f1e3 100755
--- a/tests/touch/not-owner
+++ b/tests/touch/not-owner
@@ -25,12 +25,11 @@ fi
. $srcdir/../lang-default
. $srcdir/../test-lib.sh
-test=$abs_top_builddir/src/test
-if $test -w /; then
+if env -- test -w /; then
skip_test_ you have write access to /.
fi
-if $test -O / || $test -G /; then
+if env -- test -O / || env -- test -G /; then
skip_test_ "you own /."
fi