2 # ensure that stat properly handles a format string ending with %
4 if test "$VERBOSE" = yes; then
10 t0
=`echo "$0"|sed 's,.*/,,'`.tmp
; tmp
=$t0/$$
11 trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
12 trap '(exit $?); exit $?' 1 2 13 15
15 mkdir
-p $tmp || framework_failure
=1
16 cd $tmp || framework_failure
=1
18 if test $framework_failure = 1; then
19 echo "$0: failure in testing framework" 1>&2
26 fmt=`printf "%${i}s" %`
27 out
=`stat --form="$fmt" .`
28 test "$out" = "$fmt" || fail
=1
31 (exit $fail); exit $fail