tests: kernel: fix test groups for semaphore/mutex
define groups for semaphores and mutexes Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
d80174fadf
commit
3744dd828f
2 changed files with 18 additions and 1 deletions
|
@ -26,6 +26,15 @@ static struct k_thread tdata;
|
|||
static struct k_thread tdata2;
|
||||
static struct k_thread tdata3;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @defgroup kernel_mutex_tests Mutexes
|
||||
* @ingroup all_tests
|
||||
* @{
|
||||
* @}
|
||||
*/
|
||||
|
||||
static void tThread_entry_lock_forever(void *p1, void *p2, void *p3)
|
||||
{
|
||||
zassert_false(k_mutex_lock((struct k_mutex *)p1, K_FOREVER) == 0,
|
||||
|
|
|
@ -8,6 +8,14 @@
|
|||
#include <zephyr/irq_offload.h>
|
||||
#include <zephyr/ztest_error_hook.h>
|
||||
|
||||
|
||||
/**
|
||||
* @defgroup kernel_semaphore_tests Semaphores
|
||||
* @ingroup all_tests
|
||||
* @{
|
||||
* @}
|
||||
*/
|
||||
|
||||
/* Macro declarations */
|
||||
#define SEM_INIT_VAL (0U)
|
||||
#define SEM_MAX_VAL (10U)
|
||||
|
@ -271,7 +279,7 @@ ZTEST(semaphore, test_sem_thread2isr)
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief Test semaphore initialization at running time
|
||||
* @brief Test semaphore initialization at runtime
|
||||
* @details
|
||||
* - Initialize a semaphore with valid count and max limit.
|
||||
* - Initialize a semaphore with invalid max limit.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue