2 # FIXME: This test requires ln -s.
3 # cp from 3.16 fails this test
5 if test "$VERBOSE" = yes; then
11 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
12 trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
13 trap '(exit $?); exit' 1 2 13 15
16 mkdir -p $tmp || framework_failure=1
17 cd $tmp || framework_failure=1
19 if test $framework_failure = 1; then
20 echo "$0: failure in testing framework" 1>&2
33 # It should fail with a message something like this:
34 # ./cp: `a/foo' and `b/foo' are the same file
35 cp -d a/foo b 2>/dev/null
37 # Fail this test if the exit status is not 1
40 test "`cat a/foo`" = $msg || fail=1