aboutsummaryrefslogtreecommitdiffstats
path: root/tests/timer/timer_test.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-22 04:45:26 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-22 07:18:39 +0200
commit13a8fb84f0d83f23e65daa528f2f392ec3b83a75 (patch)
treeefe9f801ad8f7d50c3da22fa87ebba5acace3863 /tests/timer/timer_test.c
parent9c9a04705ff431c1e10bf40f2e964a43360441ac (diff)
timer_test: remove unused precision values and confusing log
Diffstat (limited to 'tests/timer/timer_test.c')
-rw-r--r--tests/timer/timer_test.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/timer/timer_test.c b/tests/timer/timer_test.c
index c576a04..1aeab45 100644
--- a/tests/timer/timer_test.c
+++ b/tests/timer/timer_test.c
@@ -59,10 +59,6 @@ struct test_timer {
/* time between two steps, in secs. */
#define TIME_BETWEEN_STEPS 1
-/* timer imprecision that we accept for this test: 10 milliseconds. */
-#define TIMER_PRES_SECS 0
-#define TIMER_PRES_USECS 20000
-
static int timer_nsteps = MAIN_TIMER_NSTEPS;
static unsigned int expired_timers = 0;
static unsigned int total_timers = 0;
@@ -185,9 +181,7 @@ int main(int argc, char *argv[])
}
}
- fprintf(stdout, "Running timer test for %u steps, accepting "
- "imprecision of %u.%.6u seconds\n",
- timer_nsteps, TIMER_PRES_SECS, TIMER_PRES_USECS);
+ fprintf(stdout, "Running timer test for %u steps\n", timer_nsteps);
osmo_timer_schedule(&main_timer, 1, 0);