diff options
Diffstat (limited to 'test.h')
-rw-r--r-- | test.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -27,6 +27,6 @@ int tests_run = 0; | |||
27 | int ret = 0; | 27 | int ret = 0; |
28 | 28 | ||
29 | #define check(cond, message) do { if (!(cond)) { fputs (message, stderr); fputc ('\n', stderr); return 0; } } while (0) | 29 | #define check(cond, message) do { if (!(cond)) { fputs (message, stderr); fputc ('\n', stderr); return 0; } } while (0) |
30 | #define run(test) do { tests_run++; if (!test ()) { ret = 1; } } while (0) | 30 | #define run(test) do { if (!test ()) { ret = 1; } } while (0) |
31 | 31 | ||
32 | #endif // ifndef _BRANDT_TEST_H | 32 | #endif // ifndef _BRANDT_TEST_H |