Skip to content
Commit 8fd3d18b authored by Daniel Leung's avatar Daniel Leung Committed by Kumar Gala
Browse files

tests: kernel/common: incorrect use of k_poll in timeout order



In the timeout order test, the usage of k_poll() assumes that it
only returns after all events are ready. However, that is not
the case, as k_poll() returns when non-zero number of events are
ready. This means the check for all semaphore being ready after
k_poll() will not always pass. So instead of using k_poll(),
simply wait a bit for timers to fire, then check results.

Also add some bits to clean up at the end of test.

Fixes #34585

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 33043dca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment