]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
whoops
authorJim Meyering <jim@meyering.net>
Tue, 7 Aug 2001 11:32:28 +0000 (11:32 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 7 Aug 2001 11:32:28 +0000 (11:32 +0000)
tests/mv/update

index 768ccefe229129a6e7955fb7822d16be74271807..74cd3a21e49c26447387765afa246c1480207fc7 100755 (executable)
@@ -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