Skip to content
Commit a76103ce authored by Evgeniy Paltsev's avatar Evgeniy Paltsev Committed by Carles Cufi
Browse files

tests/kernel/context: don't do print in time-critical section



In test_busy_wait and test_k_sleep test cases of
tests/kernel/context test we measure not only execution time of the
primitives itself (k_busy_wait and k_msleep respectively) but also
the overall test thread execution time.

The issue here is that we do printing in test threads which
means that we do printing in time-critical sections. That breaks
test if we do printing via some device which isn't fast enough.

Fix that by removing print from time-critical section

Signed-off-by: default avatarEvgeniy Paltsev <PaltsevEvgeniy@gmail.com>
Signed-off-by: default avatarEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
parent e50a8596
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment