tests: userspace: add support for K_OBJ_CONDVAR
add support for K_OBJ_CONDVAR in test_alloc_kobjects() This improves the code coverage. Signed-off-by: Lixin Guo <lixinx.guo@intel.com>
This commit is contained in:
parent
350a13566e
commit
c02d39ea57
1 changed files with 3 additions and 0 deletions
|
@ -1258,6 +1258,7 @@ void test_alloc_kobjects(void)
|
|||
struct k_poll_signal *polls;
|
||||
struct k_timer *timer;
|
||||
struct k_mutex *mutex;
|
||||
struct k_condvar *condvar;
|
||||
void *ko;
|
||||
|
||||
/* allocate kernel object */
|
||||
|
@ -1288,6 +1289,8 @@ void test_alloc_kobjects(void)
|
|||
zassert_not_null(timer, "alloc obj (0x%lx)\n", (uintptr_t)timer);
|
||||
mutex = k_object_alloc(K_OBJ_MUTEX);
|
||||
zassert_not_null(mutex, "alloc obj (0x%lx)\n", (uintptr_t)mutex);
|
||||
condvar = k_object_alloc(K_OBJ_CONDVAR);
|
||||
zassert_not_null(condvar, "alloc obj (0x%lx)\n", (uintptr_t)condvar);
|
||||
|
||||
k_object_release((void *)mslab);
|
||||
k_object_release((void *)polls);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue