llvm-project/libcxx/test/std
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
..
algorithms [libc++] Consistently replace `::new(__p) T` with `::new ((void*)__p) T`. NFCI. 2020-12-14 12:08:34 -05:00
atomics [libc++] Add missing XFAIL to tests that need __atomic_* libcalls 2021-01-08 12:48:22 +00:00
concepts/lang [libc++] Remove the c++98 Lit feature from the test suite 2020-06-03 09:37:22 -04:00
containers [libc++] Split allocator_traits and pointer_traits out of <memory> 2020-12-14 16:13:57 -05:00
depr [libc++] NFC: Fix several GCC warnings in the test suite 2020-10-30 12:48:05 -04:00
diagnostics [libc++] Remove <clocale> from some system_error tests 2020-10-28 09:49:36 -04:00
experimental [libc++] [libc++abi] Mark a few tests as unsupported/xfail on gcc-7/8/9. 2020-11-26 08:59:52 +01:00
input.output [libc++] [P1164] Add tests for create_directories. NFC. 2020-12-14 17:27:18 +01:00
iterators [libc++] Use consistent declaration for main() in test 2020-12-15 17:34:06 -05:00
language.support [libc++] [C++2b] [P1048] Add is_scoped_enum and is_scoped_enum_v. 2021-01-12 17:08:20 +01:00
localization [libc++] [P0482] [C++20] Implement missing bits for codecvt and codecvt_byname. 2020-12-02 09:01:58 +01:00
namespace [libc++] Add a libc++ configuration that does not support localization 2020-10-27 14:56:30 -04:00
numerics Fix test expectation to cope with custom version namespaces. 2020-12-13 22:43:24 -08:00
re [libc++] Implements multiline regex support. 2020-11-18 18:17:36 +01:00
strings [libc++] Fix synopsis in string::ends_with test. NFC. 2020-12-15 19:03:11 +01:00
thread [libcxx testing] Fix UB in tests for std::lock_guard 2021-01-15 16:11:45 +07:00
utilities [libcxx] Avoid overflows in the windows __libcpp_steady_clock_now() 2021-01-12 23:56:03 +02:00
pstl [libc++] Take 2: Integrate the PSTL into libc++ 2019-08-05 18:29:14 +00:00