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
12 . $srcdir/../envvar-check
14 if test -z "$other_partition_tmpdir"; then
18 file="$other_partition_tmpdir/file"
23 trap 'rm -fr out out2 exp $file $symlink $other_partition_tmpdir; exit $fail' \
27 rm -f $file $symlink || framework_failure=1
28 echo whatever > $file || framework_failure=1
29 ln -s $file $symlink || framework_failure=1
31 if test $framework_failure = 1; then
32 echo 'failure in testing framework'
36 # Make sure we get English translations.
37 . $srcdir/../lang-default
39 # This mv command should exit nonzero.
40 mv $symlink $file > out 2>&1 && fail=1
42 # This should succeed.
43 mv $file $symlink || fail=1
48 -e "s,$symlink,ZZZ," \
52 XXX: `ZZZ' and `YYY' are the same file
56 cmp out2 exp || fail=1
57 test $fail = 1 && diff out2 exp 2> /dev/null