summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/test.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/include/test.h b/include/test.h
index 64716cc..45b786c 100644
--- a/include/test.h
+++ b/include/test.h
@@ -3,21 +3,21 @@
char *__curtestname = "<none>";
-#define test_run(func) \
- do { \
- char *orig = __curtestname; \
- __curtestname = #func; \
- func(); \
- __curtestname = orig; \
+#define test_run(func) \
+ do { \
+ char *orig = __curtestname; \
+ __curtestname = #func; \
+ func(); \
+ __curtestname = orig; \
} while (0)
-#define test_assert(cond) \
- do { \
- if (!(cond)) { \
- fprintf(stderr, "%s:%d: %s: test_assert failed: %s\n", __FILE__, __LINE__, \
- __curtestname, #cond); \
- abort(); \
- } \
+#define test_assert(cond) \
+ do { \
+ if (!(cond)) { \
+ fprintf(stderr, "%s:%d: %s: test_assert failed: %s\n", \
+ __FILE__, __LINE__, __curtestname, #cond); \
+ abort(); \
+ } \
} while (0)
#endif