mirror of https://gerrit.osmocom.org/libosmocore
timer: Increase the imprecision we accept in this test
On a loaded server we might not be able to reach 10ms precision in the test configuration and this is not a high precision timer anyway.
This commit is contained in:
parent
df90aedcc7
commit
00a12feae6
|
@ -60,7 +60,7 @@ struct test_timer {
|
||||||
|
|
||||||
/* timer imprecision that we accept for this test: 10 milliseconds. */
|
/* timer imprecision that we accept for this test: 10 milliseconds. */
|
||||||
#define TIMER_PRES_SECS 0
|
#define TIMER_PRES_SECS 0
|
||||||
#define TIMER_PRES_USECS 10000
|
#define TIMER_PRES_USECS 20000
|
||||||
|
|
||||||
static int timer_nsteps = MAIN_TIMER_NSTEPS;
|
static int timer_nsteps = MAIN_TIMER_NSTEPS;
|
||||||
static unsigned int expired_timers = 0;
|
static unsigned int expired_timers = 0;
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
Running timer test for 5 steps, accepting imprecision of 0.010000 seconds
|
Running timer test for 5 steps, accepting imprecision of 0.020000 seconds
|
||||||
test over: added=31 expired=31 too_late=0
|
test over: added=31 expired=31 too_late=0
|
||||||
|
|
Loading…
Reference in New Issue