2 # rm (coreutils-4.5.4) could be tricked into mistakenly reporting a cycle.
4 if test "$VERBOSE" = yes; then
9 . $srcdir/../lang-default
10 PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
13 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
14 trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
15 trap '(exit $?); exit $?' 1 2 13 15
18 mkdir -p $tmp || framework_failure=1
19 cd $tmp || framework_failure=1
24 if test $framework_failure = 1; then
25 echo "$0: failure in testing framework" 1>&2
31 rm -rf a a 2>&1 | sed 's/:[^:]*$//' > out || fail=1
33 rm: cannot remove `a/b/file'
34 rm: cannot remove `a/b/file'
38 test $fail = 1 && diff out exp 2> /dev/null
40 (exit $fail); exit $fail