Test: Fix failure count
Jeffrey Pfau jeffrey@endrift.com
Sat, 22 Oct 2016 16:13:45 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/util/test/suite.h
→
src/util/test/suite.h
@@ -13,7 +13,7 @@
#define M_TEST_DEFINE(NAME) static void NAME (void **state ATTRIBUTE_UNUSED) #define M_TEST_SUITE(NAME) _testSuite_ ## NAME -#define M_TEST_SUITE_RUN(NAME) printf("\nRunning suite %s\n", # NAME), M_TEST_SUITE(NAME)() +#define M_TEST_SUITE_RUN(NAME) (printf("\nRunning suite %s\n", # NAME), M_TEST_SUITE(NAME)()) #define M_TEST_SUITE_DEFINE(NAME, ...) M_TEST_SUITE_DEFINE_EX(NAME, NULL, NULL, __VA_ARGS__) #define M_TEST_SUITE_DEFINE_SETUP(NAME, ...) M_TEST_SUITE_DEFINE_EX(NAME, _testSuite_setup_ ## NAME, NULL, __VA_ARGS__) #define M_TEST_SUITE_DEFINE_TEARDOWN(NAME, ...) M_TEST_SUITE_DEFINE_EX(NAME, NULL, _testSuite_teardown_ ## NAME, __VA_ARGS__)