zephyr/tests/kernel/sched/schedule_api/src
Daniel Leung 803eb1ea10 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: Daniel Leung <daniel.leung@intel.com>
2021-02-23 10:36:21 -05:00
..
main.c tests: sched_api remove misprints and etc 2020-10-14 19:38:11 -04:00
test_priority_scheduling.c tests: sched_api remove misprints and etc 2020-10-14 19:38:11 -04:00
test_sched_is_preempt_thread.c tests: sched_api remove misprints and etc 2020-10-14 19:38:11 -04:00
test_sched_priority.c tests: sched_api remove misprints and etc 2020-10-14 19:38:11 -04:00
test_sched_timeslice_and_lock.c tests: sched_api remove misprints and etc 2020-10-14 19:38:11 -04:00
test_sched_timeslice_reset.c tests: schedule_api: lengthen interval for slicing reset test 2021-02-23 10:36:21 -05:00
test_sched.h test: scheduling: add test case 2020-09-16 08:06:42 -04:00
test_slice_scheduling.c tests: sched_api remove misprints and etc 2020-10-14 19:38:11 -04:00
user_api.c