aboutsummaryrefslogtreecommitdiff
path: root/test.h
diff options
context:
space:
mode:
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
commite095416bc2e299afc1bde1f33382845b7baf4c01 (patch)
tree1229ab1f64b524a105dae63262f151e8cf1074f0 /test.h
parent09af66c165035dcabde8f5c529877dbd6c296e91 (diff)
lift code to recent GNUNET version; uncrustify
Diffstat (limited to 'test.h')
-rw-r--r--test.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/test.h b/test.h
index 369b302..03c7977 100644
--- a/test.h
+++ b/test.h
@@ -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