Skip to content
Commit 803eb1ea authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

tests: schedule_api: lengthen interval for slicing reset test



When calculating the expected interval for threads other than
the first one, the test uses ms->ticks->cycles conversion to
figure out the bound of cycles permitted. Both lower and upper
bound conversions are using the k_*_to_*_floor32(). When
numbers involved are not wholly divisible, decimal points are
being truncated, resulting in incorrect intervals, and thus
failing tests. So change the calculation to appropriate
floor() or ceil() based on the boundary.

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