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.
44 # This mv command should exit nonzero.
45 mv $symlink $file > out 2>&1 && fail=1
47 # This should succeed.
48 mv $file $symlink || fail=1
53 -e "s,$symlink,ZZZ," \
57 XXX: `ZZZ' and `YYY' are the same file
61 cmp out2 exp || fail=1
62 test $fail = 1 && diff out2 exp 2> /dev/null