2 # mv must fail when src and dest are mismatched directory/non-directory.
4 if test "$VERBOSE" = yes; then
11 trap "cd $pwd; rm -rf $tmp" 0 1 2 3 15
14 mkdir $tmp || framework_failure=1
16 mkdir -p dir/file || framework_failure=1
17 > file || framework_failure=1
19 if test $framework_failure = 1; then
20 echo 'failure in testing framework'
26 # These should both fail, but until fileutils-4.0q only the second one did.
27 mv dir file > /dev/null 2>&1 && fail=1
28 mv file dir > /dev/null 2>&1 && fail=1