2 # Exercise a bug that was fixed in 4.0s.
3 # Before then, rm would fail occasionally, sometimes via
4 # a failed assertion, others with a seg fault.
8 if test "$VERBOSE" = yes; then
14 t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
15 trap 'status=$?; cd $pwd; rm -rf $t0 || exit $?; exit $status' 0
16 trap 'exit $?' 1 2 13 15
19 mkdir -p $tmp || framework_failure=1
22 # Create a hierarchy with 3*26 leaf directories, each at depth 153.
23 echo "$0: creating 78 trees, each of depth 153; this will take a while..." >&2
24 y=`seq 1 150|tr -sc '\n' y|tr '\n' /`
26 for j in a b c d e f g h i j k l m n o p q r s t u v w x y z; do
27 mkdir -p t/$i/$j/$y || framework_failure=1
31 if test $framework_failure = 1; then
32 echo 'failure in testing framework'
40 (exit $fail); exit $fail