summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__Jonathan Roelofs2014-12-111-0/+7
| | | | llvm-svn: 224057
* Since Eric poisoned the comma operator on all our test iterators, we no ↵Marshall Clow2014-11-181-105/+0
| | | | | | longer need 'comma_iterator'. Remove it from the test suite. llvm-svn: 222238
* Fix use of operator comma in is_permutation and delete comma operator for ↵Eric Fiselier2014-10-271-5/+13
| | | | | | | | | test iterators. The comma operators in the test iterators give better error messages when they are deleted as opposed to not defined. Delete these functions when possible. llvm-svn: 220715
* [libcxx] Fix use of operator comma where the types can be user definedEric Fiselier2014-10-271-0/+15
| | | | | | | | | | | | | | | | Summary: An evil user might overload operator comma. Use a void cast to make sure any user overload is not selected. Modify all the test iterators to define operator comma. Reviewers: danalbert, mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5929 llvm-svn: 220706
* Whitespace maintenance. Remove a bunch of tabs that snuck in. No ↵Marshall Clow2014-10-181-19/+19
| | | | | | functionality change llvm-svn: 220142
* Add include of <cassert> for the operator commaMarshall Clow2014-09-171-0/+1
| | | | llvm-svn: 217938
* Create a 'comma_iterator' class that overloads operator, and asserts when ↵Marshall Clow2014-09-161-0/+105
| | | | | | it's called. Add tests to mismatch to make sure it can't be blindsided by such an evil iterator. More tests for other algorithms forthcoming. Thanks to STL for pointing this out at CppCon and Yakov Galka for opening LWG issue #2133 llvm-svn: 217902
* PR20546: Fix tests for compare_exchange_weak.Dan Albert2014-09-061-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | These calls are allowed to fail spuriously. 29.6.5.25: Remark: A weak compare-and-exchange operation may fail spuriously. That is, even when the contents of memory referred to by expected and object are equal, it may return false and store back to expected the same memory contents that were originally there. [ Note: This spurious failure enables implementation of compare and-exchange on a broader class of machines, e.g., load-locked store-conditional machines. A consequence of spurious failure is that nearly all uses of weak compare-and-exchange will be in a loop. To fix this, we replace any assert() that expects std::atomic::compare_exchange_weak() to return true with a loop. If the call does not return true within N runs (with N currently equal to 10), then the test fails. http://llvm.org/bugs/show_bug.cgi?id=20546 llvm-svn: 217319
* [asan] Make vector asan annotations exception-friendlyKostya Serebryany2014-09-021-2/+2
| | | | | | | | | Fix vector asan annotations with RAII. Add a test. Also, remove one dead function. Review: http://reviews.llvm.org/D4170 llvm-svn: 216995
* fix missing include for ::close in platform_support.hEric Fiselier2014-08-191-0/+2
| | | | llvm-svn: 215998
* Give libcxx tests temporary filenames that are actually unique.Jonathan Roelofs2014-08-191-4/+14
| | | | | | | | This fixes a race condition on temp file name creation. http://reviews.llvm.org/D4962 llvm-svn: 215977
* Add bare_allocator archetype that implements the minimal possible allocator ↵Eric Fiselier2014-08-151-1/+29
| | | | | | interface. llvm-svn: 215691
* Fix PR#202520 - predicate called too many times in list::remove_if. Add ↵Marshall Clow2014-08-041-6/+3
| | | | | | tests for list, forward_list, and the std::remove_if algorithm llvm-svn: 214736
* test commitEric Fiselier2014-07-241-0/+1
| | | | llvm-svn: 213887
* Add a reset method to the counting predicates in the test suiteMarshall Clow2014-07-091-1/+3
| | | | llvm-svn: 212651
* Mark assign to be constepr only in c++14; can't have constexpr fns that ↵Marshall Clow2014-06-101-1/+1
| | | | | | return void in C++11 llvm-svn: 210562
* Testing infastructure: A template for char_traits where all the functions ↵Marshall Clow2014-06-062-0/+185
| | | | | | are constexpr, and a comparison predicate which counts how many times it's been called. llvm-svn: 210381
* Add Address Sanitizer support to std::vectorMarshall Clow2014-05-081-0/+37
| | | | llvm-svn: 208319
* Bug #19473. If you pass an allocator to std::function, we should use that ↵Marshall Clow2014-04-181-0/+60
| | | | | | allocator, not construct one from scratch. Add a test to make sure llvm-svn: 206623
* Implement LWG 2324: Insert iterator constructors should use addressof(). Add ↵Marshall Clow2014-03-031-0/+282
| | | | | | two new container classes to the test suite that overload operator &, and add test cases to the insert/front_insert/back_insert iterator tests that use these containers. llvm-svn: 202741
* Add license headers to a bunch of libc++ files that were missing them. No ↵Marshall Clow2014-01-166-0/+54
| | | | | | functionality change. Fixes 18291. Thanks to Nico for the bug report and the patch. llvm-svn: 199400
* Found six (nmostly) identical files named 'test_allocator.h' in the libcxx ↵Marshall Clow2013-12-031-0/+155
| | | | | | test suite. Moved one to /support, made it a superset, and removed all but one of the others, and iupdated all the includes. Left the odd one (thread/futures/test_allocator.h) for later. llvm-svn: 196174
* Found two identical files named 'allocators.h' in the libcxx test suite. ↵Marshall Clow2013-12-021-0/+174
| | | | | | Moved one to /support, removed the other, and iupdated all the includes. No functionality change llvm-svn: 196127
* Found two identical files named 'DefaultOnly.h' in the libcxx test suite. ↵Marshall Clow2013-12-021-0/+26
| | | | | | Moved one to /support, removed the other, and iupdated all the includes. No functionality change llvm-svn: 196118
* There were two identical files named 'min_allocator.h'. Move one of them to ↵Marshall Clow2013-11-261-0/+252
| | | | | | /support and delete the other. Then adjust all the tests that used them to include the moved one. No functionality change. llvm-svn: 195785
* G M: 1. It changes the temp file handling to use the template and the ↵Howard Hinnant2013-10-061-7/+6
| | | | | | | | current directory for windows, matching how it works on other platforms. 2. It re-enables the temp file handling for mingw that regressed. llvm-svn: 192073
* First half of support for N3657; heterogenous lookups for set/multisetMarshall Clow2013-08-131-0/+22
| | | | llvm-svn: 188241
* Nico Rieck: Currently _MSC_VER and _WIN32 are used to guard code which isHoward Hinnant2013-08-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | MSVC-specific, MSVCRT-specific, or Windows-specific. Because Clang can also define _MSC_VER, and MSVCRT is not necessarily the only C runtime, these macros should not be used interchangeably. This patch divides all Windows-related bits into the aforementioned categories. Two new macros are introduced: - _LIBCPP_MSVC: Defined when compiling with MSVC. Detected using _MSC_VER, excluding Clang. - _LIBCPP_MSVCRT: Defined when using the Microsoft CRT. This is the default when _WIN32 is defined. This leaves _WIN32 for code using the Windows API. This also corrects the spelling of _LIBCP_HAS_IS_BASE_OF to _LIBCPP_HAS_IS_BASE_OF. Nico, please prepare a patch for CREDITS.TXT, thanks. llvm-svn: 187593
* War on tabs.Howard Hinnant2013-07-081-1/+1
| | | | llvm-svn: 185865
* İsmail Dönmez: Change to mktemp template to make it compatible with Linux.Howard Hinnant2013-04-251-1/+1
| | | | llvm-svn: 180267
* Test cleanup with respect to use of deprecated tmpnam function. Also ↵Howard Hinnant2013-03-221-0/+21
| | | | | | Windows port for these tests to use _tempnam. The bulk of this patch was donated anonymously. I've tested it on OS X and accept responsibility for it. If I've broken anyone's platform by switching from tmpnam to mktemp for the generation of temporary file names, just let me know. Should be easy to fix in test/support/platform_support.h llvm-svn: 177755
* Removed raw references to _WIN32; now just check to see if it is defined.Marshall Clow2013-03-181-1/+1
| | | | llvm-svn: 177291
* Michael van der Westhuizen: Improve support for testing on Linux. Fixes ↵Howard Hinnant2013-01-141-1/+6
| | | | | | http://llvm.org/bugs/show_bug.cgi?id=14892. llvm-svn: 172436
* Made test output iterators have value_type of 'void'; matches ones in libraryMarshall Clow2013-01-092-1/+14
| | | | llvm-svn: 171980
* Move common header files into a 'support' directory; make 'testit' include ↵Marshall Clow2013-01-053-0/+371
-I to that directory; rename 'iterators.h' to 'iterator_test.h'; remove hard-coded paths to include files from more than 350 source files llvm-svn: 171594
OpenPOWER on IntegriCloud