Skip to content

Commit 1e74821

Browse files
nordic-krchnashif
authored andcommitted
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 <[email protected]>
1 parent 57a893d commit 1e74821

File tree

1 file changed

+2
-2
lines changed
  • tests/subsys/logging/log_api/src

1 file changed

+2
-2
lines changed

tests/subsys/logging/log_api/src/test.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ static void log_api_suite_before(void *data)
660660
}
661661

662662
#define WRAP_TEST(test_name, suffix) \
663-
ZTEST(test_log_api_##suffix, test_name##_##suffix) \
663+
ZTEST(UTIL_CAT(test_log_api_, suffix), UTIL_CAT(test_name, UTIL_CAT(_,suffix))) \
664664
{ \
665665
test_name(); \
666666
}
@@ -670,7 +670,7 @@ static void log_api_suite_before(void *data)
670670
#else
671671
#define TEST_SUFFIX cc
672672
#endif
673-
#define TEST_SUITE_NAME test_log_api_ ## TEST_SUFFIX
673+
#define TEST_SUITE_NAME UTIL_CAT(test_log_api_, TEST_SUFFIX)
674674

675675
ZTEST_SUITE(TEST_SUITE_NAME, NULL, log_api_suite_setup,
676676
log_api_suite_before, NULL, log_api_suite_teardown);

0 commit comments

Comments
 (0)