4 trap '__st=$?; rm -fr $tmpfiles; exit $__st' 0
5 trap '__st=$?; (exit $__st); exit $__st' 1 2 3 15
7 if ( diff --version < /dev/null 2>&1 | grep GNU ) 2>&1 > /dev/null; then
8 compare() { diff -u "$@"; }
9 elif ( cmp --version < /dev/null 2>&1 | grep GNU ) 2>&1 > /dev/null; then
10 compare() { cmp -s "$@"; }
12 compare() { cmp "$@"; }
15 tmpfiles="t-xalloc-die.tmp"
18 test-xalloc-die${EXEEXT} 2> t-xalloc-die.tmp
21 *) (exit 1); exit 1 ;;
24 compare - t-xalloc-die.tmp <<\EOF || { (exit 1); exit 1; }
25 test-xalloc-die: memory exhausted