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 <andrew.j.ross@intel.com> |
||
|---|---|---|
| .. | ||
| main.c | ||
| timer_convert.c | ||