summaryrefslogtreecommitdiff
path: root/tests/cp/no-deref-link1
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-07-08 22:43:38 +0000
committerJim Meyering <jim@meyering.net>1997-07-08 22:43:38 +0000
commitc2b8fe4acf35cb96fef7d07f37d6edb1b8f66503 (patch)
tree6a45581c89fce1f29cd43890f99eed6bc8638fcc /tests/cp/no-deref-link1
parentf3a329069eb8a72a5cbcbffb3999f363ff82c9c2 (diff)
downloadcoreutils-c2b8fe4acf35cb96fef7d07f37d6edb1b8f66503.tar.xz
.
Diffstat (limited to 'tests/cp/no-deref-link1')
-rwxr-xr-xtests/cp/no-deref-link14
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/cp/no-deref-link1 b/tests/cp/no-deref-link1
index 5cf4ee326..05e1e796d 100755
--- a/tests/cp/no-deref-link1
+++ b/tests/cp/no-deref-link1
@@ -2,6 +2,8 @@
# FIXME: This test requires ln -s.
# cp from 3.16 fails this test
+: ${CP=cp}
+
rm -rf a b
mkdir a b
msg=bar
@@ -14,7 +16,7 @@ fail=0
# It should fail with a message something like this:
# ./cp: `a/foo' and `b/foo' are the same file
-./cp -d a/foo b 2>/dev/null
+$CP -d a/foo b 2>/dev/null
# Fail this test if the exit status is not 1
test $? = 1 || fail=1