[Support] Fix fragile ThreadPool test
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Sat, 25 Apr 2020 19:05:53 +0000 (15:05 -0400)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Sat, 25 Apr 2020 19:06:21 +0000 (15:06 -0400)
commit72b6fcbe781b498dc81b8e24e5c3e0f29e0ae792
tree3952ea2a2fa2dbe1bb7d16658e5482d186691b23
parent09684b08d3b56b8ab0adb8fe46f709aeba29cee6
[Support] Fix fragile ThreadPool test

The test ThreadPoolTest.AllThreads_UseAllRessources occasionally fails on the bots: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/32015/steps/test-check-all/logs/FAIL%3A%20LLVM-Unit%3A%3AThreadPoolTest.AllThreads_UseAllRessources

This is because jobs were executed too fast on the first CPU socket, and never manage to reach the second CPU socket.

Differential Revision: https://reviews.llvm.org/D78832
llvm/unittests/Support/ThreadPool.cpp