From 1a8989fd9dc79ea15af6d94ed857467f02d54214 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 25 Dec 2000 18:31:18 +0000 Subject: [PATCH] Add a test for this (for all of cp, mv, ln, install). --- tests/ln/misc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/ln/misc b/tests/ln/misc index 8ab2d13..3a9d8d9 100755 --- a/tests/ln/misc +++ b/tests/ln/misc @@ -117,9 +117,12 @@ rm -rf a symlink hard-to-sym hard-to-dangle # Make sure ln can make simple backups. # This was fixed in 4.0.34. Broken in 4.0r. -touch a x || framework_failure=1 -ln --backup=simple --suffix=.orig x a || fail=1 -test -f a.orig || fail=1 +for cmd in ln cp mv ginstall; do + rm -rf a x a.orig + touch a x || framework_failure=1 + $cmd --backup=simple --suffix=.orig x a || fail=1 + test -f a.orig || fail=1 +done # =================================================== -- 2.7.4