summaryrefslogtreecommitdiffstats
path: root/libcxx
Commit message (Collapse)AuthorAgeFilesLines
* Add `REQUIRES: c++experimental` where appropriate.Dan Albert2016-06-1030-0/+30
| | | | | | | | | | | | | | Summary: I haven't added it to all the tests, just those that fail without it (those that aren't header only). Reviewers: EricWF, mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D21247 llvm-svn: 272443
* [streambuf] Added call to traits_type::copy to common case in xsgetn()Evandro Menezes2016-06-101-2/+12
| | | | | | | | | Patch by Laman Sole <laxman.g@partner.samsung.com>, Sebastian Pop <s.pop@samsung.com>, Aditya Kumar <aditya.k7@samsung.com> Differential Revision: http://reviews.llvm.org/D21103 llvm-svn: 272401
* Make the comparison objects that we pass in for various tests look more like ↵Marshall Clow2016-06-0940-28/+48
| | | | | | actual comparison objects. No functional change. llvm-svn: 272288
* Two more issues w/patchesMarshall Clow2016-06-091-3/+3
| | | | llvm-svn: 272263
* Add notes for 2688Marshall Clow2016-06-081-2/+2
| | | | llvm-svn: 272216
* [CMake] Cleanup uses of USES_TERMINALChris Bieneman2016-06-081-8/+0
| | | | | | | | Now that we are on CMake 3.4.3 we no longer need a version check around this. This is the libcxx side of r272211. llvm-svn: 272212
* Mark 2441 as readyMarshall Clow2016-06-081-1/+1
| | | | llvm-svn: 272202
* Patch ready for #2436Marshall Clow2016-06-081-1/+1
| | | | llvm-svn: 272150
* Added notes for a bunch of the issuesMarshall Clow2016-06-071-10/+10
| | | | llvm-svn: 272050
* Added notes about the issues for OuluMarshall Clow2016-06-071-22/+22
| | | | llvm-svn: 272029
* Avoid Shadowing warnings in the associative containers tests. Thanks to STL ↵Marshall Clow2016-06-074-4/+8
| | | | | | for the patch. llvm-svn: 272018
* Rename some test data (and make it const) to rid us of some shadowing ↵Marshall Clow2016-06-0627-315/+315
| | | | | | warnings in the test suite. No functional change. Thanks to STL@microsoft for the report and patch. llvm-svn: 271919
* Remove arithmetic +/-127 on chars; results in UB when dealing with signed ↵Marshall Clow2016-06-061-8/+13
| | | | | | chars. Thanks to STL@microsoft for the report. llvm-svn: 271897
* Don't call memmove when there's nothing to move. Fixes PR#27978.Marshall Clow2016-06-041-1/+3
| | | | llvm-svn: 271794
* [libcxx] Fix c++98 test failures.Asiri Rathnayake2016-06-0322-23/+23
| | | | | | | | | Adds XFAIL/UNSUPPORTED lit tags as appropriate. Gets a clean test run for -std=c++98 on Fedora 20. NFC. llvm-svn: 271741
* [libcxx] Fix thread join.pass.cpp segfault after r271475Asiri Rathnayake2016-06-031-4/+7
| | | | | | | | | | | | | | | Some pthread implementations do not like being called pthead_join() with the pthread_t argument set to 0, and causes a segfault. This patch fixes this issue by validating the pthread_t argument before invoking pthread_join(). NFC. Differential revision: http://reviews.llvm.org/D20929 Change-Id: Ief817c57bd0e1f43cbaa03061e02417d6a180c38 Reviewers: EricWF llvm-svn: 271634
* Add not_fn test for throwing operator!Eric Fiselier2016-06-021-0/+8
| | | | llvm-svn: 271502
* Fix TEST_HAS_NO_EXCEPTIONS misspelling in the test suite.Eric Fiselier2016-06-021-1/+1
| | | | llvm-svn: 271501
* Mark LWG issue 2545 as complete. Add extra testsEric Fiselier2016-06-023-1/+133
| | | | llvm-svn: 271489
* Fix leak in __enable_weak_this(). Thanks to Arthur O'Dwyer for finding it.Eric Fiselier2016-06-022-3/+37
| | | | llvm-svn: 271487
* Mark LWG issue 2218 as complete.Eric Fiselier2016-06-021-1/+1
| | | | | | | LWG issue 2218 relaxes a restriction on how containers can call Alloc::construct(...) and Alloc::destroy(...). There is nothing new to test. llvm-svn: 271477
* Mark LWG issue 2336 as complete. There is nothing to do.Eric Fiselier2016-06-021-1/+1
| | | | llvm-svn: 271476
* Mark LWG issue 2250 as completeEric Fiselier2016-06-0210-91/+115
| | | | llvm-svn: 271475
* Mark LWG issue 2450 as complete.Eric Fiselier2016-06-028-7/+81
| | | | llvm-svn: 271473
* Update libcxx.llvm.org documentation by linking to new docs.Eric Fiselier2016-06-023-487/+82
| | | | | | | | | | | | | | | Summary: Currently much of the libcxx website is duplicated between the old www/ documentation and newer Sphinx docs. This patch changes the main libc++ webpage so that it links to the new documentation where possible. This means removing numerous sections from the landing page. @mclow.lists What do you think? Reviewers: mclow.lists Subscribers: cfe-commits, mclow.lists Differential Revision: http://reviews.llvm.org/D19250 llvm-svn: 271469
* Add C++17 std::not_fn negator.Eric Fiselier2016-06-024-4/+627
| | | | | | | | | | | | | | | Summary: Exactly what it sounds like. I plan to commit this in a couple of days assuming no objections. Reviewers: mclow.lists, EricWF Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20799 llvm-svn: 271464
* [libcxx] Allow target flags to affect CMake configuration testsEric Fiselier2016-06-022-8/+32
| | | | | | | | | | | | | | | | | | Summary: This patch changes the libc++ CMake so that it adds certain target flags like '-m32' or '--gcc-toolchain' before including config-ix.cmake. Since these flags can affect things like check_library_exists([...]) they needed to be added before the tests are performed. This patch fixes: https://llvm.org/bugs/show_bug.cgi?id=24322 Reviewers: danalbert, jroelofs, bcraig, compnerd Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20887 llvm-svn: 271460
* Remove enable_shared_from_this test since it leaks the control block and ↵Eric Fiselier2016-06-021-26/+0
| | | | | | fails with ASAN llvm-svn: 271459
* Implement P0033R1 - Re-enabling shared_from_thisEric Fiselier2016-06-023-2/+98
| | | | | | | | | | | | Summary: See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0033r1.html Reviewers: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19254 llvm-svn: 271449
* Remove trailing whitespace in test suite. Approved by Marshall Clow.Eric Fiselier2016-06-01369-1028/+1028
| | | | llvm-svn: 271435
* Cleanup non-standard tests as reported by STL@microsoft.com. NFC.Eric Fiselier2016-06-0120-6/+8
| | | | | | | | | | | | | | | This patch addresses the following issues in the test suite: 1. Move "std::bad_array_length" test from std/ to libcxx/ test directory since the feature is not a part of the standard. 2. Rename "futures.tas" test directory to "futures.task" since that is the correct stable name. 3. Move tests for "packaged_task<T>::result_type" from std/ to libcxx/ test directory since the typedef is a libc++ extension. llvm-svn: 271430
* [CMake] Update to requiring CMake 3.4.3Chris Bieneman2016-05-311-1/+1
| | | | | | | | | | | | | | Summary: This is as per the discussions on developer lists: http://lists.llvm.org/pipermail/llvm-dev/2016-April/098780.html http://lists.llvm.org/pipermail/llvm-dev/2016-May/100058.html Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D20828 llvm-svn: 271329
* Issues for OuluMarshall Clow2016-05-311-63/+71
| | | | llvm-svn: 271282
* Mark LWG issue 2520 as completeEric Fiselier2016-05-314-1/+17
| | | | llvm-svn: 271249
* Add tests that got missed in r271247.Eric Fiselier2016-05-312-0/+106
| | | | llvm-svn: 271248
* Mark LWG issue 2276 as complete. Add _LIBCPP_ASSERTS for itEric Fiselier2016-05-312-1/+3
| | | | llvm-svn: 271247
* Mark LWG issue 2537 as completeEric Fiselier2016-05-313-5/+7
| | | | llvm-svn: 271241
* Mark LWG issue #2585 as completeEric Fiselier2016-05-312-2/+21
| | | | llvm-svn: 271240
* Mark LWG issue 2565 as complete. Update the tests to check it.Eric Fiselier2016-05-313-29/+101
| | | | llvm-svn: 271238
* Make string_view work with -fno-exceptions and get tests passing.Eric Fiselier2016-05-309-60/+106
| | | | llvm-svn: 271237
* Cleanup error handling when TLS creation failsEric Fiselier2016-05-301-3/+1
| | | | llvm-svn: 271235
* Mark LWG issue #2522 as completeEric Fiselier2016-05-301-1/+1
| | | | llvm-svn: 271231
* Fix bug in test allocator that incorrectly computed the allocation sizeEric Fiselier2016-05-302-4/+5
| | | | llvm-svn: 271195
* [libcxx] Improve tests to use the UNSUPPORTED lit directiveAsiri Rathnayake2016-05-28126-581/+176
| | | | | | | | | | | | | | | | | | | Quite a few libcxx tests seem to follow the format: #if _LIBCPP_STD_VER > X // Do test. #else // Empty test. #endif We should instead use the UNSUPPORTED lit directive to exclude the test on earlier C++ standards. This gives us a more accurate number of test passes for those standards and avoids unnecessary conflicts with other lit directives on the same tests. Reviewers: bcraig, ericwf, mclow.lists Differential revision: http://reviews.llvm.org/D20730 llvm-svn: 271108
* Add missing include to test_iterators.hEric Fiselier2016-05-271-0/+1
| | | | llvm-svn: 271074
* Fix PR27751. Add proper dependancies for install-libcxx-headers ruleEric Fiselier2016-05-271-1/+2
| | | | llvm-svn: 271073
* Fix PR27875. Parse LIBCXX_CXX_ABI_LIBRARY_PATH as a path not a stringEric Fiselier2016-05-271-2/+4
| | | | llvm-svn: 271070
* Guard testing of tuple extensions to make tests portableEric Fiselier2016-05-275-2/+16
| | | | llvm-svn: 271065
* Tolerate incorrect return type for 'isinf' and 'isnan' in tests.Eric Fiselier2016-05-276-126/+96
| | | | | | | | | | | | | | | | | | Summary: GLIBC recently removed the incorrect `int isinf(double)` and `int isnan(double)` overloads in C++11 and greater. This causes previously `XFAIL: linux` tests to start passing. Since there is no longer a way to 'XFAIL' the tests I choose to simply tolerate this bug. See https://sourceware.org/bugzilla/show_bug.cgi?id=19439 Reviewers: rsmith, mclow.lists, EricWF Subscribers: jroelofs, cfe-commits Differential Revision: http://reviews.llvm.org/D19835 llvm-svn: 271060
* [libcxx] Allow explicit pthread opt-inBen Craig2016-05-254-6/+18
| | | | | | | | | | | | | | | The existing pthread detection code in __config is pretty good for common operating systems. It doesn't allow cmake-time choices to be made for uncommon operating systems though. This change adds the LIBCXX_HAS_PTHREAD_API cmake flag, which turns into the _LIBCPP_HAS_THREAD_API_PTHREAD preprocessor define. This is a name change from the old _LIBCPP_THREAD_API_PTHREAD. The lit tests want __config_site.in variables to have a _LIBCPP_HAS prefix. http://reviews.llvm.org/D20573 llvm-svn: 270735
OpenPOWER on IntegriCloud