diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2024-01-14 21:42:10 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2024-01-14 21:42:10 +0100 |
commit | e095416bc2e299afc1bde1f33382845b7baf4c01 (patch) | |
tree | 1229ab1f64b524a105dae63262f151e8cf1074f0 /test.h | |
parent | 09af66c165035dcabde8f5c529877dbd6c296e91 (diff) |
lift code to recent GNUNET version; uncrustify
Diffstat (limited to 'test.h')
-rw-r--r-- | test.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -27,10 +27,11 @@ int tests_run = 0; int ret = 0; -#define CHECK(cond, message) do { if (!(cond)) { fputs (message, stderr); fputc ( \ - '\n', \ - stderr); return 0; \ - } } while (0) -#define RUN(test) do { if (!test ()) { ret = 1; } } while (0) +#define CHECK(cond, message) do { if (! (cond)) { fputs (message, stderr); \ + fputc ( \ + '\n', \ + stderr); return 0; \ + } } while (0) +#define RUN(test) do { if (! test ()) { ret = 1; } } while (0) #endif // ifndef _BRANDT_TEST_H |