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-link3 | |
parent | f3a329069eb8a72a5cbcbffb3999f363ff82c9c2 (diff) | |
download | coreutils-c2b8fe4acf35cb96fef7d07f37d6edb1b8f66503.tar.xz |
.
Diffstat (limited to 'tests/cp/no-deref-link3')
-rwxr-xr-x | tests/cp/no-deref-link3 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/cp/no-deref-link3 b/tests/cp/no-deref-link3 index 4d3611aee..5bb062477 100755 --- a/tests/cp/no-deref-link3 +++ b/tests/cp/no-deref-link3 @@ -2,6 +2,8 @@ # FIXME: This test requires ln -s. # cp from 3.16 fails this test +: ${CP=cp} + rm -rf a b msg=bar echo $msg > a @@ -10,8 +12,8 @@ ln -s a b fail=0 # It should fail with a message something like this: -# ./cp: `a' and `b' are the same file -./cp -d a b 2>/dev/null +# cp: `a' and `b' 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 |