aboutsummaryrefslogtreecommitdiff
path: root/test/test_framework.h
diff options
context:
space:
mode:
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)