summaryrefslogtreecommitdiff
path: root/tests/touch
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-04-20 23:18:48 +0200
committerJim Meyering <meyering@redhat.com>2008-04-20 23:18:48 +0200
commitfdb7e5b44ce87d725e5e7bca3746c494cfa47fd2 (patch)
tree93093ba36335fefd308f0a68fb47b7e6914c1997 /tests/touch
parentb29e812e824ac86464dc05e066f8adc5fe2e46ad (diff)
downloadcoreutils-fdb7e5b44ce87d725e5e7bca3746c494cfa47fd2.tar.xz
Use "env" to invoke potential built-ins.
* tests/misc/pwd-unreadable-parent: Invoke pwd via "env -- pwd", rather than via an absolute name. * tests/touch/not-owner: Likewise for test. * tests/chmod/setgid: Likewise.
Diffstat (limited to 'tests/touch')
-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