From 09f486bc322f944e6be13db0b5ce351d0d6bbe69 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 19 Oct 2016 01:35:08 -0400 Subject: [PATCH] timout for timing unit tests --- tests/timing.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/timing.c b/tests/timing.c index b4ef56813..82fb8bf6f 100644 --- a/tests/timing.c +++ b/tests/timing.c @@ -76,7 +76,7 @@ Test(timing, time_to_from_double) cr_assert_float_eq(dbl, ref, 1e-9); } -Test(timing, timerfd_create_rate) +Test(timing, timerfd_create_rate, .timeout = 20) { struct timespec start, end; @@ -100,7 +100,7 @@ Test(timing, timerfd_create_rate) close(tfd); } -Test(timing, timerfd_wait_until) +Test(timing, timerfd_wait_until, .timeout = 1) { int tfd = timerfd_create(CLOCK_REALTIME, 0);