tests: semaphore: add k_thread_join to test_sem_take_timeout_isr
This adds k_thread_join() to the thread being used in test_sem_take_timeout_isr() to avoid a thread re-use error in the test after this one. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
8b7252cd41
commit
3a7e0f875c
1 changed files with 2 additions and 0 deletions
|
@ -585,6 +585,8 @@ void test_sem_take_timeout_isr(void)
|
|||
k_sem_reset(&simple_sem);
|
||||
|
||||
expect_k_sem_take_nomsg(&simple_sem, SEM_TIMEOUT, 0);
|
||||
|
||||
k_thread_join(&sem_tid_1, K_FOREVER);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue