From e73a9e714f86e34ede60da3f4ccdecb91c31983e Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 8 Aug 2020 12:07:34 +0200 Subject: server: Overengineered hashtable property test --- test/test_framework.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_framework.h') 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) -- cgit v1.2.3-54-g00ecf