diff options
author | Jim Meyering <jim@meyering.net> | 2001-08-07 11:32:28 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-08-07 11:32:28 +0000 |
commit | fb3d202184c396125aedf0dde8f42e3a1e6795bc (patch) | |
tree | 9d241ae0f59c378f8c1831be9643b349c508601d /tests | |
parent | ea9d247693960c0d42e44b7c92eb3cdff4fb349c (diff) | |
download | coreutils-fb3d202184c396125aedf0dde8f42e3a1e6795bc.tar.xz |
whoops
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/mv/update | 5 |
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 |