llvm-project/libcxx/test
Eric Fiselier 9a37bc91d2 Fix race conditions in test class used throughout the std::thread tests.
The test class 'G' reads and writes to the same static variables in its
constructor, destructor and call operator. When threads are
constructed using `std::thread t((G()))` there is a race condition between the
destruction of the temporary and the execution of `G::operator()()`.

The fix is to simply create the input before creating the thread.

llvm-svn: 233946
2015-04-02 21:12:17 +00:00
..
libcxx [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
std Fix race conditions in test class used throughout the std::thread tests. 2015-04-02 21:12:17 +00:00
support Add option to disable access to the global filesystem namespace. 2015-03-12 15:44:39 +00:00
CMakeLists.txt [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
lit.cfg [libcxx] Allow use of ShTest in libc++ tests along with other changes. 2015-01-22 18:05:58 +00:00
lit.site.cfg.in [libcxx] Add code coverage configuration to CMake and LIT. 2015-03-31 04:15:45 +00:00
nothing_to_do.pass.cpp Test commit: Reverting whitespace changes 2014-07-17 05:10:03 +00:00
testit Apply patch for Albert Wong: 'Modify testit to allow filtering tests by prefixes'. 2014-01-15 16:28:42 +00:00