]> git.ipfire.org Git - thirdparty/pdns.git/commit
Some systems have a low-resolution nanosleep(2), calling it will
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 19 Dec 2022 08:08:14 +0000 (09:08 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 19 Dec 2022 08:13:25 +0000 (09:13 +0100)
commit28bc59591441c18e463ffde67aa4e0bddc28132d
tree3bdaaced9b452beff48cc7edf2b13fc61b141910
parent87a9568f4988373a487f4e871145db00204d2466
Some systems have a low-resolution nanosleep(2), calling it will
sleep for at least a few ms. Compensate for that by running fewer
loops with longer sleeps.

Also use dns_random and make sure it is initlized properly for all tests.
pdns/recursordist/test-rec-tcounters_cc.cc
pdns/recursordist/test-recpacketcache_cc.cc
pdns/recursordist/testrunner.cc