aboutsummaryrefslogtreecommitdiff
path: root/test/test_framework.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-08-08 12:07:34 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-08-08 12:07:34 +0200
commite73a9e714f86e34ede60da3f4ccdecb91c31983e (patch)
tree9c61901c1440d841569aa7608e136ead7658f2c9 /test/test_framework.h
parentc4fa2aff45e974d7042410587c6c9ae2487f3f5d (diff)
server: Overengineered hashtable property test
Diffstat (limited to 'test/test_framework.h')
-rw-r--r--test/test_framework.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_framework.h b/test/test_framework.h
index 7ab4816..327de00 100644
--- a/test/test_framework.h
+++ b/test/test_framework.h
@@ -17,9 +17,9 @@ void test_report_error(
if (!(cond_)) test_report_error("EXPECT", #cond_, __FILE__, __LINE__); \
} while (0)
-#define EXPECTRET(cond_, ret_) do { \
+#define EXPECTRET(ret_, cond_) do { \
if (!(cond_)) { \
test_report_error("EXPECT", #cond_, __FILE__, __LINE__); \
return (ret_); \
} \
- }
+ } while (0)