Skip to content
This repository
Browse code

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.
  • Loading branch information...
commit 68b0c85c0958e7b057c28c2ef0c50dfb632a28aa 1 parent 5031a5b
Ben Noordhuis bnoordhuis authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  test/test-hrtime.c
2  test/test-hrtime.c
@@ -47,7 +47,7 @@ TEST_IMPL(hrtime) {
47 47 /* Check that the difference between the two hrtime values is somewhat in */
48 48 /* the range we expect it to be. */
49 49 ASSERT(diff > (uint64_t) 25 * NANOSEC / MILLISEC);
50   - ASSERT(diff < (uint64_t) 60 * NANOSEC / MILLISEC);
  50 + ASSERT(diff < (uint64_t) 80 * NANOSEC / MILLISEC);
51 51 --i;
52 52 }
53 53 return 0;

0 comments on commit 68b0c85

Please sign in to comment.
Something went wrong with that request. Please try again.