llvm-project/libcxx/test/std/thread/thread.mutex/thread.lock
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
..
thread.lock.guard [libcxx testing] Fix UB in tests for std::lock_guard 2021-01-15 16:11:45 +07:00
thread.lock.scoped [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
thread.lock.shared [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
thread.lock.unique [libc++] Introduce an indirection to create threads in the test suite 2020-11-27 11:54:19 -05:00
types.fail.cpp [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
types.pass.cpp [libc++] Take 2: Implement LWG 2510 2019-09-26 14:51:10 +00:00