2 #include <stdio.h> // fprintf
8 extern int mutest_failed_checks;
9 extern int mutest_passed_checks;
10 extern int mutest_case_failed;
12 #define mu_check(exp) \
14 if (exp) ++mutest_passed_checks; \
16 ++mutest_failed_checks; \
17 mutest_case_failed = 1; \
18 fprintf(stderr, "%s:%d: mu_check(%s) failed, " \
19 "resuming test case\n", __FILE__, \
24 #define mu_ensure(exp) \
26 if (exp) ++mutest_passed_checks; \
28 ++mutest_failed_checks; \
29 mutest_case_failed = 1; \
30 fprintf(stderr, "%s:%d: mu_ensure(%s) failed, " \
31 "aborting test case\n", __FILE__, \