diff options
author | Jim Meyering <jim@meyering.net> | 1997-07-08 22:43:38 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-07-08 22:43:38 +0000 |
commit | c2b8fe4acf35cb96fef7d07f37d6edb1b8f66503 (patch) | |
tree | 6a45581c89fce1f29cd43890f99eed6bc8638fcc /tests/cp/no-deref-link2 | |
parent | f3a329069eb8a72a5cbcbffb3999f363ff82c9c2 (diff) | |
download | coreutils-c2b8fe4acf35cb96fef7d07f37d6edb1b8f66503.tar.xz |
.
Diffstat (limited to 'tests/cp/no-deref-link2')
-rwxr-xr-x | tests/cp/no-deref-link2 | 6 |
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 |