Give them the ability to query the current failure state.
Signed-off-by: Phil Carmody <phil@dovecot.fi>
test_success = TRUE;
}
+bool test_has_failed(void)
+{
+ return !test_success;
+}
+
void test_assert_failed(const char *code, const char *file, unsigned int line)
{
printf("%s:%u: Assert failed: %s\n", file, line, code);
} STMT_END
void test_assert_failed(const char *code, const char *file, unsigned int line);
void test_assert_failed_idx(const char *code, const char *file, unsigned int line, long long i);
+bool test_has_failed(void);
void test_end(void);
void test_out(const char *name, bool success);