diff options
author | Jim Meyering <meyering@redhat.com> | 2008-04-20 23:18:48 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-04-20 23:18:48 +0200 |
commit | fdb7e5b44ce87d725e5e7bca3746c494cfa47fd2 (patch) | |
tree | 93093ba36335fefd308f0a68fb47b7e6914c1997 /tests/touch/not-owner | |
parent | b29e812e824ac86464dc05e066f8adc5fe2e46ad (diff) | |
download | coreutils-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/not-owner')
-rwxr-xr-x | tests/touch/not-owner | 5 |
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 |