2 # Make sure that cp -R DIR1 DIR2 does the right thing
3 # when DIR1 is written with a trailing slash.
5 if test "$VERBOSE" = yes; then
12 trap 'status=$?; cd $pwd; rm -rf $tmp || exit $?; exit $status' 0
13 trap 'exit $?' 1 2 13 15
16 mkdir $tmp || framework_failure=1
17 cd $tmp || framework_failure=1
19 mkdir dir1 dir2 || framework_failure=1
20 touch dir1/file || framework_failure=1
22 if test $framework_failure = 1; then
23 echo 'failure in testing framework'
28 cp -R dir1/ dir2 || fail=1
30 # This file should not exist, but it did with fileutils-4.0w.
31 test -r dir2/file && fail=1
34 test -r dir2/dir1/file || fail=1
35 test -r dir1/file || fail=1