X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/9c8633f0258d0750fd81387fe826d4522873cd90..425ed781f7a27bc415e13a1901899e2c7b11e4c8:/tests/crossparse-c-random.sh diff --git a/tests/crossparse-c-random.sh b/tests/crossparse-c-random.sh index 9fc45fb..a800f3f 100755 --- a/tests/crossparse-c-random.sh +++ b/tests/crossparse-c-random.sh @@ -72,6 +72,12 @@ eval_cmd=`exec 3>&1 } | proc >&3` eval "$eval_cmd" +if test x"$gen_status" != x"0"; then + printf '%s: %s failed with status=%d\n' \ + "$0" "$randomdecl" "$gen_status" 1>&2 + exit 1 +fi + expected_count=`expr "$TESTITER" + 0` if test x"$count" != x"$expected_count"; then printf '%s: failed after %d successful tests (out of %d)\n' \ @@ -79,5 +85,5 @@ if test x"$count" != x"$expected_count"; then exit 1 fi -test x"$result" = x"pass" && test x"$gen_status" = x"0" && exit 0 +test x"$result" = x"pass" && exit 0 exit 1