diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/test-limits.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/test-limits.c b/testsuite/test-limits.c index ed19d8a..0e43924 100644 --- a/testsuite/test-limits.c +++ b/testsuite/test-limits.c @@ -35,9 +35,11 @@ test_simple (int max, int (*adder) (OrcProgram *, int, const char *)) for (v = 0; v < max; v++) (*adder) (p, 2, names + v); result = orc_program_compile (p); - if (!ORC_COMPILE_RESULT_IS_SUCCESSFUL (result)) + if (ORC_COMPILE_RESULT_IS_FATAL (result)) error = TRUE; + orc_program_reset (p); + /* Check we can not add one more */ (*adder) (p, 2, names + v); result = orc_program_compile (p); |