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 <krzysztof.chruscinski@nordicsemi.no>
diff --git a/tests/subsys/logging/log_api/src/test.inc b/tests/subsys/logging/log_api/src/test.inc
index 443e7e8..af18137 100644
--- a/tests/subsys/logging/log_api/src/test.inc
+++ b/tests/subsys/logging/log_api/src/test.inc
@@ -660,7 +660,7 @@
}
#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 @@
#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);