4 trap 'rm -fr $tmpfiles' 1 2 3 15
6 tmpfiles
="t-c-stack2.tmp"
8 # Sanitize exit status within a subshell, since some shells fail to
9 # redirect stderr on their message about death due to signal.
10 (${CHECKER} .
/test-c-stack
${EXEEXT} 1; exit $?
) 2> t-c-stack2.tmp
13 77) if grep 'stack overflow' t-c-stack2.tmp
>/dev
/null
; then
14 if test -z "$LIBSIGSEGV"; then
15 echo 'cannot tell stack overflow from crash; consider installing libsigsegv' >&2
18 echo 'cannot tell stack overflow from crash, in spite of libsigsegv' >&2
22 cat t-c-stack2.tmp
>&2
26 0) (exit 1); exit 1 ;;
28 if grep 'program error' t-c-stack2.tmp
>/dev
/null
; then