llvm-project/libcxx/test/std/thread
Igor Kudrin 7803636057 [libcxx testing] Fix UB in tests for std::lock_guard
If mutex::try_lock() is called in a thread that already owns the mutex,
the behavior is undefined. The patch fixes the issue by creating another
thread, where the call is allowed.

Differential Revision: https://reviews.llvm.org/D94656
2021-01-15 16:11:45 +07:00
..
futures [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.barrier [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.condition [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.general Support tests in freestanding 2019-02-04 20:31:13 +00:00
thread.latch [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.mutex [libcxx testing] Fix UB in tests for std::lock_guard 2021-01-15 16:11:45 +07:00
thread.req [libc++] Remove useless nothing_to_do.pass.cpp tests 2020-04-03 13:48:34 -04:00
thread.semaphore [libc++] Update and normalize the "all the headers" tests. 2020-12-03 15:01:38 -05:00
thread.threads [libc++] ADL-proof <thread>, and eliminate `using namespace chrono`. 2020-12-01 22:13:39 -05:00
macro.pass.cpp libcxx: Define __STDCPP_THREADS__ to 1, not to __cplusplus. 2019-07-30 14:32:47 +00:00