diff options
author | Martin Storsjö <martin@martin.st> | 2022-08-09 11:56:46 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-08-19 11:42:35 +0300 |
commit | 81e55ff47317a06bfac6a9bc1b81c7107dfd415b (patch) | |
tree | 9c330b4ab0b1436f4ed5cf5a7d2fe2cc270b87c0 /libcxx/include/__algorithm/generate.h | |
parent | 63d88ed5bfcf81964e0c3492d28440f92ca01ee3 (diff) | |
download | llvm-81e55ff47317a06bfac6a9bc1b81c7107dfd415b.zip llvm-81e55ff47317a06bfac6a9bc1b81c7107dfd415b.tar.gz llvm-81e55ff47317a06bfac6a9bc1b81c7107dfd415b.tar.bz2 |
[libcxx] [test] Make some threading tests more robust
Increase the timeout tolerance if TEST_IS_EXECUTED_IN_A_SLOW_ENVIRONMENT
is set, similarly to how it's done in a couple other tests.
Use `std::this_thread::yield();` instead of busylooping. When multiple
threads are busylooping, it's plausible that not all threads even get
started running before the timeout runs out.
This makes the threading tests succeed if run in Windows runners on
Github Actions.
Differential Revision: https://reviews.llvm.org/D131483
Diffstat (limited to 'libcxx/include/__algorithm/generate.h')
0 files changed, 0 insertions, 0 deletions