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:
Jaxson Han 2023-09-21 10:45:29 +08:00 committed by Carles Cufí
commit 2a8548b036

View file

@ -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