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

tests/kernel/sched/schedule_api: Fix slice time test for fast ticks



When ticks are sub-millisecond, the math produces minimum and maximum
values for the slice duration test that are equal.  But because of
aliasing across tick boundaries, it's always possible (for any time
period, nothing specific to time slicing here) to measure one tick
more than an intended duration.  So make sure there's always at least
a range of 1ms.

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