mirror of https://github.com/c-ares/c-ares.git
tests: MacOS needs higher priority on CI systems (#849)
On CI systems that can be overloaded, things like usleep() and select() may not closely honor their timeouts, and can often be a multiple of the requested timeout. Some tests, out of necessity need to rely on accurate timing in order to test timeout conditions so this means test failures when the skew is too large. Short of increasing timeouts to a point that would make tests take an unreasonable amount of time, the alternative is to make the OS honor the requested timeout more accurately. On MacOS this means to set a realtime thread priority for the tests. Other projects like libuv do this same thing. The code is taken from: https://developer.apple.com/library/archive/technotes/tn2169/_index.html Authored-By: Brad House (@bradh352)pull/853/head
parent
72d844ae8d
commit
08b7692703
3 changed files with 47 additions and 13 deletions
Loading…
Reference in new issue