Skip to content
Permalink
Browse files

subsys/ztest: Documentation fix

Documentation moved to the right place.
The argument name of the macro is aligned between the macros.

Signed-off-by: Radoslaw Koppel <radoslaw.koppel@nordicsemi.no>
  • Loading branch information...
rakons authored and nashif committed May 23, 2019
1 parent 626349f commit bf7b97bdf5f100bf717c9fafee54d3ad60ebdc7f
Showing with 17 additions and 16 deletions.
  1. +17 −16 subsys/testsuite/ztest/include/ztest_test.h
@@ -126,6 +126,20 @@ static inline void unit_test_noop(void)
#define ztest_user_unit_test(fn) \
ztest_user_unit_test_setup_teardown(fn, unit_test_noop, unit_test_noop)


/* definitions for use with testing application shared memory */
#ifdef CONFIG_USERSPACE
#define ZTEST_DMEM K_APP_DMEM(ztest_mem_partition)
#define ZTEST_BMEM K_APP_BMEM(ztest_mem_partition)
#define ZTEST_SECTION K_APP_DMEM_SECTION(ztest_mem_partition)
extern struct k_mem_partition ztest_mem_partition;
extern struct k_mem_domain ztest_mem_domain;
#else
#define ZTEST_DMEM
#define ZTEST_BMEM
#define ZTEST_SECTION .data
#endif

/**
* @brief Define a test suite
*
@@ -139,23 +153,10 @@ static inline void unit_test_noop(void)
* ztest_run_test_suite(test_suite_name);
* ```
*
* @param name Name of the testing suite
* @param suite Name of the testing suite
*/

/* definitions for use with testing application shared memory */
#ifdef CONFIG_USERSPACE
#define ZTEST_DMEM K_APP_DMEM(ztest_mem_partition)
#define ZTEST_BMEM K_APP_BMEM(ztest_mem_partition)
#define ZTEST_SECTION K_APP_DMEM_SECTION(ztest_mem_partition)
extern struct k_mem_partition ztest_mem_partition;
extern struct k_mem_domain ztest_mem_domain;
#else
#define ZTEST_DMEM
#define ZTEST_BMEM
#define ZTEST_SECTION .data
#endif
#define ztest_test_suite(name, ...) \
static ZTEST_DMEM struct unit_test _##name[] = { \
#define ztest_test_suite(suite, ...) \
static ZTEST_DMEM struct unit_test _##suite[] = { \
__VA_ARGS__, { 0 } \
}
/**

0 comments on commit bf7b97b

Please sign in to comment.
You can’t perform that action at this time.