diff options
Diffstat (limited to 'test.h')
-rw-r--r-- | test.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ | |||
6 | int tests_run = 0; | 6 | int tests_run = 0; |
7 | int ret = 0; | 7 | int ret = 0; |
8 | 8 | ||
9 | #define check(cond, message) do { if (!(cond)) { fputs(message, stderr); return 0; } } while (0) | 9 | #define check(cond, message) do { if (!(cond)) { fputs(message, stderr); fputc('\n', stderr); return 0; } } while (0) |
10 | #define run(test) do { tests_run++; if (!test()) ret = 1; } while (0) | 10 | #define run(test) do { tests_run++; if (!test()) ret = 1; } while (0) |
11 | 11 | ||
12 | #endif | 12 | #endif |