diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-22 04:24:38 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-09-22 07:18:39 +0200 |
commit | 633a0e76a2fbb31ce6dd4dadb35313aed3aa385c (patch) | |
tree | 88446505e438c5c7752a5d21c1910712440ac021 /tests/fr/fr_test.c | |
parent | 5b34f773e441b984d3bc98468fd015eeb4131890 (diff) |
fix timer_test: don't forget to set tv_usec on the stop time
The timer_test schedules timers and records the desired stop time. Also store
the usec value of the desired stop time, because scheduling at e.g. sec N usec
999999 but recording sec N usec 0, and then receiving a timer at sec N+1 usec 0
is only 1 usec late, but records as 1000000 usecs late. This might have been
the main cause of the timer test not working well on the osmocom build server.
Change-Id: I13bb60f7d341a397f95d13d9c63c40188b6cd5a0
Diffstat (limited to 'tests/fr/fr_test.c')
0 files changed, 0 insertions, 0 deletions