diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-08-08 12:07:34 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-08-08 12:07:34 +0200 |
commit | e73a9e714f86e34ede60da3f4ccdecb91c31983e (patch) | |
tree | 9c61901c1440d841569aa7608e136ead7658f2c9 /test/test_framework.h | |
parent | c4fa2aff45e974d7042410587c6c9ae2487f3f5d (diff) |
server: Overengineered hashtable property test
Diffstat (limited to 'test/test_framework.h')
-rw-r--r-- | test/test_framework.h | 4 |
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) |