tests: Kernel: semaphore: semaphore: Set test case to 1cpu
The test_sem_take_timeout_isr depends on the thread's priority. But for SMP platforms, the priority is different with no-SMP. High-priority threads and low-priority threads might run simultaneously at different cores. Set the test case run at 1cpu to fix such an issue. Signed-off-by: Jaxson Han <jaxson.han@arm.com>
This commit is contained in:
parent
5b8df16ef6
commit
2a8548b036
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ ZTEST_USER(semaphore, test_sem_take_timeout_forever)
|
|||
* @brief Test k_sem_take() with timeout in ISR context
|
||||
* @see k_sem_take()
|
||||
*/
|
||||
ZTEST(semaphore, test_sem_take_timeout_isr)
|
||||
ZTEST(semaphore_1cpu, test_sem_take_timeout_isr)
|
||||
{
|
||||
/*
|
||||
* Signal the semaphore upon which the another thread is waiting. The
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue