testsuite: ztest: Use STRINGIFY in ZTEST_SUITE
Using macro which will resolve complex SUITE_NAME. Without it wrong name was assigned when SUITE_NAME was consists of concatenated defines. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
50c7c7b1e4
commit
57a893dc0d
1 changed files with 8 additions and 8 deletions
|
@ -105,7 +105,7 @@ extern struct ztest_suite_node _ztest_suite_node_list_end[];
|
||||||
*/
|
*/
|
||||||
#define ZTEST_SUITE(SUITE_NAME, PREDICATE, setup_fn, before_fn, after_fn, teardown_fn) \
|
#define ZTEST_SUITE(SUITE_NAME, PREDICATE, setup_fn, before_fn, after_fn, teardown_fn) \
|
||||||
static STRUCT_SECTION_ITERABLE(ztest_suite_node, z_ztest_test_node_ ## SUITE_NAME) = { \
|
static STRUCT_SECTION_ITERABLE(ztest_suite_node, z_ztest_test_node_ ## SUITE_NAME) = { \
|
||||||
.name = #SUITE_NAME, \
|
.name = STRINGIFY(SUITE_NAME), \
|
||||||
.setup = (setup_fn), \
|
.setup = (setup_fn), \
|
||||||
.before = (before_fn), \
|
.before = (before_fn), \
|
||||||
.after = (after_fn), \
|
.after = (after_fn), \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue