Go to the documentation of this file.
4 static int test_passed = 0;
5 static int test_failed = 0;
8 #define fail() return __LINE__
11 #define done() return 0
14 #define check(cond) do { if (!(cond)) fail(); } while (0)
17 static void test(
int (*func)(
void),
const char *name) {
23 printf(
"FAILED: %s (at line %d)\n", name, r);