Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/kernel/timer/timer_api: Fix static double-conversion goof
The test of the absolute timeout feature was a simple whitebox test that inspected the generated ticks field of different constructors for identity. But it wasn't simple enough, because it was doing a ticks->ms->ticks conversion (at compile time, sigh) on the input data, which is obviously lossy on platforms where ticks are shorter than milliseconds by non-integral factors. Fix to do the conversion in just one direction. Signed-off-by: Andy Ross <[email protected]>
- Loading branch information