2 # Force mv to use the copying code.
3 # Consider the case where SRC and DEST are on different
4 # partitions and DEST is a symlink to SRC.
6 if test "$VERBOSE" = yes; then
13 if test -z "$other_partition_tmpdir"; then
17 file="$other_partition_tmpdir/file"
21 rm -f $file $symlink || framework_failure
=1
22 echo whatever
> $file || framework_failure
=1
23 ln -s $file $symlink || framework_failure
=1
25 if test $framework_failure = 1; then
26 echo 'failure in testing framework'
30 # Make sure we get English translations.
38 # This mv command should exit nonzero.
39 mv $symlink $file > out
2>&1 && fail
=1
41 # And so should this one.
42 mv $file $symlink >> out
2>&1 && fail
=1
47 -e "s,$symlink,ZZZ," \
51 XXX
: `ZZZ' and `YYY
' are the same file
52 XXX: `YYY' and
`ZZZ' are the same file
56 cmp out2 exp || fail=1
58 rm -fr out out2 exp $file $symlink $other_partition_tmpdir