tests: kernel: fix unhandled return values.
Fix unhandled return values as most other places handled in this file, fix coverity issue 203507. Fixes: #18445. Signed-off-by: Wentong Wu <wentong.wu@intel.com>
This commit is contained in:
parent
de4dcb5731
commit
9d1da7866c
1 changed files with 6 additions and 1 deletions
|
@ -418,6 +418,8 @@ K_THREAD_DEFINE(THREAD_11, STACKSIZE, thread_11, NULL, NULL, NULL,
|
|||
/*test case main entry*/
|
||||
void test_main(void)
|
||||
{
|
||||
int rv;
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
k_thread_access_grant(k_current_get(),
|
||||
&thread_12_thread_data, &thread_12_stack_area);
|
||||
|
@ -429,7 +431,10 @@ void test_main(void)
|
|||
k_mem_domain_add_thread(&ztest_mem_domain, THREAD_09);
|
||||
k_mem_domain_add_thread(&ztest_mem_domain, THREAD_11);
|
||||
#endif
|
||||
sys_mutex_lock(¬_my_mutex, K_NO_WAIT);
|
||||
rv = sys_mutex_lock(¬_my_mutex, K_NO_WAIT);
|
||||
if (rv != 0) {
|
||||
TC_ERROR("Failed to take mutex %p\n", ¬_my_mutex);
|
||||
}
|
||||
|
||||
/* We deliberately disable userspace, even on platforms that
|
||||
* support it, so that the alternate implementation of sys_mutex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue