From: Martin Ling Date: Sat, 25 Jan 2020 14:54:39 +0000 (+0000) Subject: Relax timing test in the other direction. X-Git-Tag: libserialport-0.1.2~30 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=fb58f12ee9f3e24209b58e8bfb2822c54ad729b1;p=libserialport.git Relax timing test in the other direction. On my test system under MSYS (Cygwin64), a period of 991ms was measured after a sleep of 1s. --- diff --git a/test_timing.c b/test_timing.c index e3e8ec0..bbca7d6 100644 --- a/test_timing.c +++ b/test_timing.c @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) time_get(&b); time_sub(&b, &a, &c); printf("Measured: %ums\n", time_as_ms(&c)); - assert(time_as_ms(&c) >= 999); + assert(time_as_ms(&c) >= 950); assert(time_as_ms(&c) <= 1050); printf("Starting 3s timeout\n"); timeout_start(&to, 3000);