]> granicus.if.org Git - libevent/commitdiff
Increase the tolerance in our unit tests for sloppy clocks.
authorNick Mathewson <nickm@torproject.org>
Thu, 5 Aug 2010 19:57:30 +0000 (15:57 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 5 Aug 2010 19:57:30 +0000 (15:57 -0400)
(Apparently openbsd in virtualbox just doesn't keep very accurate time.)

test/regress.h

index 5889a00830ec7bd18d127b4d481d78901a80bb36..d6bfdcf58be23ef30fe216f91812e990a408cba5 100644 (file)
@@ -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);