From: Nick Mathewson Date: Thu, 5 Aug 2010 19:57:30 +0000 (-0400) Subject: Increase the tolerance in our unit tests for sloppy clocks. X-Git-Tag: release-2.0.6-rc~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=170ffd2b1d3d8458d39d9f74099c0b381557544b;p=libevent Increase the tolerance in our unit tests for sloppy clocks. (Apparently openbsd in virtualbox just doesn't keep very accurate time.) --- diff --git a/test/regress.h b/test/regress.h index 5889a008..d6bfdcf5 100644 --- a/test/regress.h +++ b/test/regress.h @@ -110,7 +110,7 @@ int _test_ai_eq(const struct evutil_addrinfo *ai, const char *sockaddr_port, } while (0) #define test_timeval_diff_eq(tv1, tv2, diff) \ - tt_int_op(abs(timeval_msec_diff((tv1), (tv2)) - diff), <=, 30) + tt_int_op(abs(timeval_msec_diff((tv1), (tv2)) - diff), <=, 50) long timeval_msec_diff(const struct timeval *start, const struct timeval *end);