Skip to content

Commit

Permalink
tests: condvar: fix one testcase failure on qemu_cortex_a53_smp
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Enjia Mai authored and nashif committed May 8, 2021
1 parent a7d8ff4 commit 0622bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kernel/condvar/condvar_api/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void test_condvar_wait_forever_wake(void)

k_thread_create(&condvar_wake_tid, condvar_wake_stack, STACK_SIZE,
condvar_wake_task, &woken, NULL, NULL,
PRIO_WAKE, K_USER | K_INHERIT_PERMS, K_NO_WAIT);
PRIO_WAKE, K_USER | K_INHERIT_PERMS, K_MSEC(1));

/* giving time for the condvar_wake_task
* and condvar_wait_wake_task to execute
Expand Down

0 comments on commit 0622bde

Please sign in to comment.