summaryrefslogtreecommitdiff
path: root/tests/mv
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-07 11:32:28 +0000
committerJim Meyering <jim@meyering.net>2001-08-07 11:32:28 +0000
commitfb3d202184c396125aedf0dde8f42e3a1e6795bc (patch)
tree9d241ae0f59c378f8c1831be9643b349c508601d /tests/mv
parentea9d247693960c0d42e44b7c92eb3cdff4fb349c (diff)
downloadcoreutils-fb3d202184c396125aedf0dde8f42e3a1e6795bc.tar.xz
whoops
Diffstat (limited to 'tests/mv')
-rwxr-xr-xtests/mv/update5
1 files changed, 5 insertions, 0 deletions
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