summaryrefslogtreecommitdiff
path: root/tests/cp/no-deref-link2
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-link2
parentf3a329069eb8a72a5cbcbffb3999f363ff82c9c2 (diff)
downloadcoreutils-c2b8fe4acf35cb96fef7d07f37d6edb1b8f66503.tar.xz
.
Diffstat (limited to 'tests/cp/no-deref-link2')
-rwxr-xr-xtests/cp/no-deref-link26
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/cp/no-deref-link2 b/tests/cp/no-deref-link2
index 8c12c1d27..66847cd30 100755
--- a/tests/cp/no-deref-link2
+++ b/tests/cp/no-deref-link2
@@ -2,6 +2,8 @@
# FIXME: This test requires ln -s.
# cp from 3.16 fails this test
+: ${CP=cp}
+
rm -rf a b
mkdir b
msg=bar
@@ -13,8 +15,8 @@ cd ..
fail=0
# It should fail with a message something like this:
-# ./cp: `a' and `b/foo' are the same file
-./cp -d a b 2>/dev/null
+# cp: `a' and `b/foo' are the same file
+$CP -d a b 2>/dev/null
# Fail this test if the exit status is not 1
test $? = 1 || fail=1