From a1d5c58ce0dcce902d1aaf3a9ee033af5ed17ed7 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 22 Oct 2016 16:13:45 -0700 Subject: [PATCH] Test: Fix failure count --- src/util/test/suite.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/test/suite.h b/src/util/test/suite.h index ea1888553..f446e2cf6 100644 --- a/src/util/test/suite.h +++ b/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__)