From fb3d202184c396125aedf0dde8f42e3a1e6795bc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 7 Aug 2001 11:32:28 +0000 Subject: whoops --- tests/mv/update | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/mv/update b/tests/mv/update index 768ccefe2..74cd3a21e 100755 --- a/tests/mv/update +++ b/tests/mv/update @@ -41,6 +41,11 @@ mv --update new old || fail=1 test -f new && fail=1 case "`cat old`" in new) ;; *) fail=1 ;; esac +# Restore initial conditions. +echo old > old || fail=1 +touch -d yesterday old || fail=1 +echo new > new || fail=1 + # This will actually perform the copy. cp --update new old || fail=1 case "`cat old`" in new) ;; *) fail=1 ;; esac -- cgit v1.2.3-54-g00ecf