Remove suppression-related options.
[coreutils.git] / tests / rm / dot-rel
blob91a41e663d486de050100e419ea5486c5c2da12f
1 #!/bin/sh
2 # Use rm -r to remove two non-empty dot-relative directories.
3 # This would have failed between 2004-10-18 and 2004-10-21.
5 if test "$VERBOSE" = yes; then
6 set -x
7 rm --version
8 fi
10 pwd=`pwd`
11 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
12 trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
13 trap '(exit $?); exit $?' 1 2 13 15
15 framework_failure=0
16 mkdir -p $tmp || framework_failure=1
17 cd $tmp || framework_failure=1
19 mkdir a b || framework_failure=1
20 touch a/f b/f || framework_failure=1
22 if test $framework_failure = 1; then
23 echo "$0: failure in testing framework" 1>&2
24 (exit 1); exit 1
27 fail=0
29 rm -r a b || fail=1
31 (exit $fail); exit $fail