Eric Fiselier
abd52cad84
Fix a handful of tests that fail in C++03
...
llvm-svn: 243392
2015-07-28 07:31:50 +00:00
Eric Fiselier
0961f6cc21
Get thread sleep_for test passing in C++03
...
llvm-svn: 238273
2015-05-27 01:09:51 +00:00
Eric Fiselier
513ae1854d
Fix race condition in thread test.
...
llvm-svn: 237745
2015-05-19 23:41:04 +00:00
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
Eric Fiselier
4b7533a1dd
Use generic feature name for sanitizers that replace new and delete
...
llvm-svn: 231841
2015-03-10 20:46:04 +00:00
Marshall Clow
d95510ebba
libc++ implements its' hash objects as deriving from std::unary_function, and the tests test for that. STL @ MS pointed out that the standard doesn't requie these objects to derive from unary_function, and so the tests should not require that either. Change the tests to check for the embedded typedefs - which ARE required. No change to the library.
...
llvm-svn: 225403
2015-01-07 21:53:23 +00:00
Eric Fiselier
5a83710e37
Move test into test/std subdirectory.
...
llvm-svn: 224658
2014-12-20 01:40:03 +00:00