tests: kernel: fix unhandled return values.
Fix unhandled return values as most other places handled in this file, fix coverity issue 203454. Fixes: #18443. Signed-off-by: Wentong Wu <wentong.wu@intel.com>
This commit is contained in:
parent
45326cff1c
commit
de4dcb5731
1 changed files with 5 additions and 1 deletions
|
@ -116,8 +116,12 @@ void sem_take_multiple_high_prio_helper(void *p1, void *p2, void *p3)
|
|||
|
||||
void sem_multiple_threads_wait_helper(void *p1, void *p2, void *p3)
|
||||
{
|
||||
int ret_value;
|
||||
|
||||
/* get blocked until the test thread gives the semaphore */
|
||||
sys_sem_take(&multiple_thread_sem, K_FOREVER);
|
||||
ret_value = sys_sem_take(&multiple_thread_sem, K_FOREVER);
|
||||
zassert_true(ret_value == 0,
|
||||
"sys_sem_take failed when its shouldn't have\n");
|
||||
|
||||
/* Inform the test thread that this thread has got multiple_thread_sem*/
|
||||
sys_sem_give(&simple_sem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue