diff --git a/src/common/test_util.h b/src/common/test_util.h index 88352660bccee9fc39a2606f72d0b92f9bf5299b..4a2439fe1de451150432b73ba15f2e1c1c1321ca 100644 --- a/src/common/test_util.h +++ b/src/common/test_util.h @@ -51,6 +51,8 @@ void _strfail(const char *a, const char *e, int len); num_tests++; \ if (!(expr)) FAIL(#expr, __LINE__); \ } while (0) +#define ASSERT_TRUE(expr) ASSERT(expr) +#define ASSERT_FALSE(expr) ASSERT(!(expr)) /* * Run test function, use its name as the test name to print