uchar C++ tests: Fix build error on FreeBSD 12.
[gnulib.git] / tests / test-c-stack.sh
blob54009d3c01d0fc5bccb87695167bdc5b79db2220
1 #!/bin/sh
3 tmpfiles=""
4 trap 'rm -fr $tmpfiles' 1 2 3 15
6 tmpfiles="t-c-stack.tmp"
7 ${CHECKER} ./test-c-stack${EXEEXT} 2> t-c-stack.tmp
8 case $? in
9 77) cat t-c-stack.tmp >&2; (exit 77); exit 77 ;;
10 1) ;;
11 *) (exit 1); exit 1 ;;
12 esac
13 if grep 'stack overflow' t-c-stack.tmp >/dev/null ; then
15 else
16 (exit 1); exit 1
19 rm -fr $tmpfiles
21 exit 0