]> git.draconx.ca Git - cdecl99.git/blobdiff - tests/crossparse-c-random.sh
Fix bogus switch cases in declgen.
[cdecl99.git] / tests / crossparse-c-random.sh
index 9fc45fb4b7d6415028d8b8197fa0e545e6e04815..a800f3f938b065c49029464cdf8277383d212227 100755 (executable)
@@ -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