Skip to content

Commit 0622bde

Browse files
Enjia Mainashif
authored andcommitted
tests: condvar: fix one testcase failure on qemu_cortex_a53_smp
After enabled FPU context switch, one condvar testcase failed due to the order of spawning thread cannot be guaranteed. Add a delay to make sure the thread which initializing the condvar run first. Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
1 parent a7d8ff4 commit 0622bde

File tree

1 file changed

+1
-1
lines changed
  • tests/kernel/condvar/condvar_api/src

1 file changed

+1
-1
lines changed

tests/kernel/condvar/condvar_api/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void test_condvar_wait_forever_wake(void)
153153

154154
k_thread_create(&condvar_wake_tid, condvar_wake_stack, STACK_SIZE,
155155
condvar_wake_task, &woken, NULL, NULL,
156-
PRIO_WAKE, K_USER | K_INHERIT_PERMS, K_NO_WAIT);
156+
PRIO_WAKE, K_USER | K_INHERIT_PERMS, K_MSEC(1));
157157

158158
/* giving time for the condvar_wake_task
159159
* and condvar_wait_wake_task to execute

0 commit comments

Comments
 (0)