Skip to content
Commit f4803bf1 authored by Andy Ross's avatar Andy Ross Committed by Anas Nashif
Browse files

tests/kernel/context: Fix sleep test for fast ticks



The sleep test was checking that the sleep took no longer than "2
ticks" longer than requested.  But "2 ticks" for fast tick rate
configurations can be "zero ms", and for aliasing reasons it's always
possible to delay for 1 unit more than requested (becuase you can
cross a millisecond/tick/whatever boundary in your own code on either
side of the sleep).  So that "slop" value needs to be no less than
1ms.

Signed-off-by: default avatarAndy Ross <andrew.j.ross@intel.com>
parent 8bd8663b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment