2 # Moving a directory specified with a trailing slash from one partition to
3 # another, and giving it a different name at the destination would cause mv
4 # to get a failed assertion.
6 if test "$VERBOSE" = yes; then
12 . $srcdir/../envvar-check
15 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
16 trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
17 trap '(exit $?); exit' 1 2 13 15
19 if test -z "$other_partition_tmpdir"; then
22 t0="$t0 $other_partition_tmpdir"
25 mkdir -p $tmp || framework_failure=1
26 cd $tmp || framework_failure=1
27 mkdir foo || framework_failure=1
29 if test $framework_failure = 1; then
30 echo "$0: failure in testing framework" 1>&2
36 mv foo/ $other_partition_tmpdir/bar || fail=1
38 (exit $fail); exit $fail