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> |
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||
| prj_dumb.conf | ||
| prj_multiq.conf | ||
| prj.conf | ||
| testcase.yaml | ||