2 # move a file onto itself
4 if test "$VERBOSE" = yes; then
13 rm -f $ff $ff2 || framework_failure=1
14 echo force-contents > $ff || framework_failure=1
15 ln $ff $ff2 || framework_failure=1
17 if test $framework_failure = 1; then
18 echo 'failure in testing framework'
22 # Make sure we get English translations.
23 . $srcdir/../lang-default
25 # This mv command should exit nonzero.
26 mv $ff $ff > out 2>&1 && fail=1
29 mv: \`$ff' and \`$ff' are the same file
33 test `cat $ff` = force-contents || fail=1
35 # This should succeed, even though the source and destination
36 # device and inodes are the same.
39 rm -fr out exp $ff $ff2