From c2b8fe4acf35cb96fef7d07f37d6edb1b8f66503 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 Jul 1997 22:43:38 +0000 Subject: . --- tests/cp/no-deref-link2 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/cp/no-deref-link2') 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 -- cgit v1.2.3-54-g00ecf