From 68b0c85c0958e7b057c28c2ef0c50dfb632a28aa Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 3 Jul 2012 21:25:10 +0200 Subject: [PATCH] test: allow 80 ms intervals in hrtime test The hrtimer functionality on my FreeBSD 9 system is fairly coarse, it's usually just over the 60 ms that we tested for before this commit. --- test/test-hrtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-hrtime.c b/test/test-hrtime.c index 2a9156ecf..72a4d4b18 100644 --- a/test/test-hrtime.c +++ b/test/test-hrtime.c @@ -47,7 +47,7 @@ TEST_IMPL(hrtime) { /* Check that the difference between the two hrtime values is somewhat in */ /* the range we expect it to be. */ ASSERT(diff > (uint64_t) 25 * NANOSEC / MILLISEC); - ASSERT(diff < (uint64_t) 60 * NANOSEC / MILLISEC); + ASSERT(diff < (uint64_t) 80 * NANOSEC / MILLISEC); --i; } return 0;