2 # Make sure cp --link -f works when the target exists.
3 # This failed for 4.0z (due to a bug introduced in that test release).
5 if test "$VERBOSE" = yes; then
12 trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
13 trap '(exit $?); exit' 1 2 13 15
16 mkdir $tmp || framework_failure=1
17 cd $tmp || framework_failure=1
19 touch src || framework_failure=1
20 touch dest || framework_failure=1
21 touch dest2 || framework_failure=1
23 if test $framework_failure = 1; then
24 echo 'failure in testing framework'
30 cp -f --link src dest || fail=1
31 cp -f --symbolic-link src dest2 || fail=1