summaryrefslogtreecommitdiff
path: root/tests/touch/no-create-missing.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/touch/no-create-missing.sh')
-rwxr-xr-xtests/touch/no-create-missing.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/touch/no-create-missing.sh b/tests/touch/no-create-missing.sh
index 4e5056e1a..7ce63b1b7 100755
--- a/tests/touch/no-create-missing.sh
+++ b/tests/touch/no-create-missing.sh
@@ -24,13 +24,11 @@ touch -c no-file > /dev/null 2>&1 || fail=1
touch -cm no-file > /dev/null 2>&1 || fail=1
touch -ca no-file > /dev/null 2>&1 || fail=1
-test="$abs_top_builddir/src/test"
-
# If >&- works, test "touch -c -" etc.
# >&- apparently does not work in HP-UX 11.23.
# This test is ineffective unless /dev/stdout also works.
-if "$test" -w /dev/stdout >/dev/null &&
- "$test" ! -w /dev/stdout >&-; then
+if env test -w /dev/stdout >/dev/null &&
+ env test ! -w /dev/stdout >&-; then
touch -c - >&- 2> /dev/null || fail=1
touch -cm - >&- 2> /dev/null || fail=1
touch -ca - >&- 2> /dev/null || fail=1