From 1cede55db57671a259142f8ae89af8acf94bf359 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 30 Oct 2016 21:14:48 -0400 Subject: [PATCH] make timer unit test more robust --- tests/timing.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/timing.c b/tests/timing.c index 82fb8bf6f..92974d1be 100644 --- a/tests/timing.c +++ b/tests/timing.c @@ -86,6 +86,8 @@ Test(timing, timerfd_create_rate, .timeout = 20) cr_assert(tfd > 0); + timerfd_wait(tfd); + for (int i = 0; i < 10; i++) { start = time_now();