1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-03-06 04:55:52 +02:00

ensure that mv did what it's supposed to

This commit is contained in:
Jim Meyering
2006-05-11 08:18:34 +00:00
parent 96a2e1be04
commit b7c2ae47f0

View File

@@ -44,6 +44,12 @@ strace -qe unlink mv -T s1 s2 > out 2>&1 || fail=1
cat <<\EOF > exp || fail=1
EOF
# Ensure that the source, s1, is gone.
ls -dl s1 > /dev/null 2>&1 && fail=1
# Ensure that the destination, s2, contains the link from s1.
test "`readlink s2`" = t1 || fail=1
cmp out exp || fail=1
test $fail = 1 && diff out exp 2> /dev/null