]> sourceware.org Git - glibc.git/commit
sunrpc/tst-udp-*: Fix timeout value
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 16 May 2020 17:29:50 +0000 (19:29 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 16 May 2020 17:34:48 +0000 (19:34 +0200)
commitcbfc16122e9c4948b3a17224aeb5f8b70f02417d
treefaf4ece9861669e7348e74cc085e7e7e458e8a76
parent501bdb5dd61afc714a098cd5ff441bd114584f75
sunrpc/tst-udp-*: Fix timeout value

Following on 00c3da43a ('sunrpc/tst-udp-timeout: Fix timeout value').

While e.g. 2.5 timeout can be represented exactly with doubles, time stamps
may not be represented that exactly, and thus with coarse-grain clocks (e.g.
10ms) we may end up with 2.499-ish values due to rounding errors.

* sunrpc/tst-udp-timeout.c (test_udp_server): Add more timeout slack.
* sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
sunrpc/tst-udp-nonblocking.c
sunrpc/tst-udp-timeout.c
This page took 0.038791 seconds and 5 git commands to generate.