From 1e748218966c5f7967224e70550941a347b4d4d8 Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Mon, 17 Jan 2022 10:56:44 +0100 Subject: [PATCH] tests: logging: log_api: Fix test suite setup After switching to new ztest suite was wrongly setup and no tests were run. Replaced ## with macro that resolves and concatenates. Signed-off-by: Krzysztof Chruscinski --- tests/subsys/logging/log_api/src/test.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/subsys/logging/log_api/src/test.inc b/tests/subsys/logging/log_api/src/test.inc index 443e7e8c5a3..af181373f8f 100644 --- a/tests/subsys/logging/log_api/src/test.inc +++ b/tests/subsys/logging/log_api/src/test.inc @@ -660,7 +660,7 @@ static void log_api_suite_before(void *data) } #define WRAP_TEST(test_name, suffix) \ - ZTEST(test_log_api_##suffix, test_name##_##suffix) \ + ZTEST(UTIL_CAT(test_log_api_, suffix), UTIL_CAT(test_name, UTIL_CAT(_,suffix))) \ { \ test_name(); \ } @@ -670,7 +670,7 @@ static void log_api_suite_before(void *data) #else #define TEST_SUFFIX cc #endif -#define TEST_SUITE_NAME test_log_api_ ## TEST_SUFFIX +#define TEST_SUITE_NAME UTIL_CAT(test_log_api_, TEST_SUFFIX) ZTEST_SUITE(TEST_SUITE_NAME, NULL, log_api_suite_setup, log_api_suite_before, NULL, log_api_suite_teardown);