summaryrefslogtreecommitdiffstats
path: root/libcxx/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Move libcxx/test/libcxx python package into libcxx/utils/libcxx.Eric Fiselier2017-02-0910-2052/+1
| | | | | | | This patch merges the test python package with the newly created package in utils. llvm-svn: 294651
* Start libc++ python cleanup and consolidation.Eric Fiselier2017-02-091-1/+1
| | | | | | | | | Libc++ frequently creates and uses utilities written in python. Currently there are python modules under both libcxx/test and libcxx/util. My goal with these changes is to consolidate them into a single package under libcxx/utils/libcxx. llvm-svn: 294644
* Fix PR31916 - std::visit rejects visitors accepting lvalue argumentsEric Fiselier2017-02-091-0/+11
| | | | | | | | | | A static assertion was misfiring since it checked is_callable<Visitor, decltype(__variant_alt<T>.value)>. However the decltype expression doesn't capture the value category as required. This patch applies extra braces to decltype to fix that. llvm-svn: 294612
* [test] Fix hard_link_count test to account for fs with dir nlink==1Michal Gorny2017-02-081-4/+8
| | | | | | | | | | Filesystems are not required to maintain a hard link count consistent with number of subdirectories. For example, on btrfs all directories have nlink==1. Account for that in the test. Differential Revision: https://reviews.llvm.org/D29706 llvm-svn: 294431
* Temporarily disable the LCM/GCD tests under UBSAN.Marshall Clow2017-02-082-0/+3
| | | | llvm-svn: 294417
* Prevent UBSAN from generating unsigned overflow diagnostics in the hashing ↵Eric Fiselier2017-02-082-0/+53
| | | | | | internals llvm-svn: 294391
* fix python3 syntax errorEric Fiselier2017-02-071-1/+1
| | | | llvm-svn: 294355
* Fix test failures when using modules.Eric Fiselier2017-02-078-0/+19
| | | | llvm-svn: 294353
* Use copy.deepcopy instead of doing it manually.Dan Albert2017-02-072-14/+3
| | | | | | | | | | | | Reviewers: EricWF Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D29209 llvm-svn: 294350
* Stop using random_shuffle in the libc++ test suite. It's going to be removed ↵Marshall Clow2017-02-0729-37/+124
| | | | | | in c++17. Use shuffle() instead. No change to libc++, just the tests. llvm-svn: 294328
* Add some tests to verify that we implement LWG#2837 correctly. No functional ↵Marshall Clow2017-02-062-0/+14
| | | | | | change. llvm-svn: 294194
* Implement LWG 2773 - std::ignore should be constexpr.Eric Fiselier2017-02-062-0/+77
| | | | | | | | In addition to the PR for LWG 2773 this patch also ensures that each of std::ignores constructors or assignment operators are constexpr. llvm-svn: 294165
* [libcxx] [test] Strip trailing whitespace.Stephan T. Lavavej2017-02-053-5/+5
| | | | | | No functional change, no code review. llvm-svn: 294161
* [libcxx] [test] Fix comment typos.Stephan T. Lavavej2017-02-054-7/+7
| | | | | | No functional change, no code review. llvm-svn: 294160
* [libcxx] [test] Avoid MSVC's non-Standard ABI in underlying_type.pass.cpp.Stephan T. Lavavej2017-02-051-9/+17
| | | | | | | | | | | | When compiled with Clang for Windows, this was emitting "enumerator value evaluates to 4294967295, which cannot be narrowed to type 'int' [-Wc++11-narrowing]". The test should more strenuously avoid poking this ABI deficiency (and it already has coverage for explicitly specified underlying types). Fixes D29140. llvm-svn: 294159
* [libcxx] [test] Fix Clang -Wpessimizing-move "moving a temporary object ↵Stephan T. Lavavej2017-02-051-6/+6
| | | | | | | | | | prevents copy elision". N4618 30.6.6 [futures.unique_future]/12 declares "shared_future<R> share() noexcept;". Fixes D29139. llvm-svn: 294158
* [libcxx] [test] Fix Clang -Wdeprecated-declarations with MSVC's CRT.Stephan T. Lavavej2017-02-051-20/+20
| | | | | | | | | | | | | | | | libcxx's tests use various C Standard Library functions that have been marked by MSVC's CRT as deprecated by Microsoft (not by ISO). libcxx's usage is cromulent (just checking with decltype to see if the functions are being dragged in by various headers as required by the Standard), so defining _CRT_SECURE_NO_WARNINGS will silence the warnings in a targeted manner. This needs to be defined before including any CRT headers. Also, make this file prettier. Fixes D29138. llvm-svn: 294157
* [libcxx] [test] Fix Clang -Wunused-local-typedef, part 3/3.Stephan T. Lavavej2017-02-053-7/+6
| | | | | | | | | | | | | | | | test/std/strings/string.classes/typedefs.pass.cpp Actually test what basic_string's typedefs stand for. test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp NotDerived and ND were completely unused. test/std/utilities/utility/pairs/pairs.pair/default.pass.cpp P2 was mistakenly not being used. Yes, that's right: -Wunused-local-typedef CAUGHT A MISTAKE! AMAZING! Fixes D29137. llvm-svn: 294156
* [libcxx] [test] Fix Clang -Wunused-local-typedef, part 2/3.Stephan T. Lavavej2017-02-0537-103/+0
| | | | | | | | These typedefs were completely unused. Fixes D29136. llvm-svn: 294155
* [libcxx] [test] Fix Clang -Wunused-local-typedef, part 1/3.Stephan T. Lavavej2017-02-0569-149/+311
| | | | | | | | | | | | | | | | | Guard typedefs and static_asserts with _LIBCPP_VERSION. test/std/containers/sequences/vector.bool/move_assign_noexcept.pass.cpp test/std/containers/sequences/vector.bool/move_noexcept.pass.cpp test/std/containers/sequences/vector.bool/swap_noexcept.pass.cpp Additionally deal with conditional compilation. test/std/containers/associative/map/map.cons/move_noexcept.pass.cpp test/std/containers/associative/multimap/multimap.cons/move_noexcept.pass.cpp Additionally deal with typedefs used by other typedefs. Fixes D29135. llvm-svn: 294154
* Change the base class of std::bad_optional_access. This is a (subtle) ABI ↵Marshall Clow2017-02-051-3/+3
| | | | | | change, and is in response to http://http://wg21.link/LWG2806, which I *expect* to be adopted in Kona. I am making this change now in anticipation, and will get it into 4.0, because (a) 4.0 is the first release with std::optional, and (b) I don't want to make an ABI-change later, when the user base should be significantly larger. Note that I didn't change std::experimental::bad_optional_access, because that's still specified to derive from std::logic_error. llvm-svn: 294133
* filesystem: fix n4100 conformance for `temp_directory_path`Saleem Abdulrasool2017-02-051-0/+8
| | | | | | | | | N4100 states that an error shall be reported if `!exists(p) || !is_directory(p)`. We were missing the first half of the conditional. Invert the error and normal code paths to make the code easier to follow. llvm-svn: 294127
* Undefine min/max in __treeEric Fiselier2017-02-041-0/+22
| | | | llvm-svn: 294099
* Avoid implementation defined behavior in a test.Dan Albert2017-02-021-1/+7
| | | | | | | | | | | | | | | | | Summary: num_put::put uses %p for pointer types, but the exact format of %p is implementation defined behavior for the C library. Compare output to snprintf for portability. Reviewers: EricWF, mclow.lists Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D29197 llvm-svn: 293926
* Extend XFAIL to c++98.Asiri Rathnayake2017-02-021-1/+1
| | | | | | NFC. llvm-svn: 293881
* Fix up some no-exception compile failuresMarshall Clow2017-01-311-11/+11
| | | | llvm-svn: 293623
* Workaround new -Wshadow warning introduced by r293599Alex Lorenz2017-01-311-1/+1
| | | | llvm-svn: 293619
* Fix PR#31779: basic_string::operator= isn't exception safe.Marshall Clow2017-01-311-0/+81
| | | | llvm-svn: 293599
* Implement LWG2556: Wide contract for future::share()Marshall Clow2017-01-241-0/+6
| | | | llvm-svn: 292992
* Change the return type of emplace_[front|back] back to void when building ↵Marshall Clow2017-01-249-9/+165
| | | | | | with C++14 or before. Resolves PR31680. llvm-svn: 292990
* Remove auto_ptr in C++17. Get it back by defining ↵Marshall Clow2017-01-2418-1/+58
| | | | | | _LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR llvm-svn: 292986
* Add a test to make sure that implicit conversion from error_code to bool ↵Marshall Clow2017-01-241-0/+30
| | | | | | will fail llvm-svn: 292969
* Implement LWG2733: [fund.ts.v2] gcd / lcm and bool. We already did tbis for ↵Marshall Clow2017-01-248-0/+200
| | | | | | C++17, so replicate the changes in experimental. llvm-svn: 292962
* Mark LWG2736 as complete. No code changes, but we have more tests nowMarshall Clow2017-01-242-3/+35
| | | | llvm-svn: 292958
* A couple more tests for constexpr stuff in string_view. No changes other ↵Marshall Clow2017-01-242-0/+38
| | | | | | than test code. llvm-svn: 292943
* Revert yet another accidental change caused by r292684Eric Fiselier2017-01-241-0/+9
| | | | llvm-svn: 292908
* Fix bad XFAIL which recent LIT changes diagnosedEric Fiselier2017-01-241-1/+1
| | | | llvm-svn: 292905
* Remove all usages of REQUIRES-ANY in the test suite.Eric Fiselier2017-01-247-7/+7
| | | | | | | | | Pending LIT changes are about to remove the REQUIRES-ANY keyword in place of supporting boolean && and || within "REQUIRES". This patch prepares libc++ for that change so that when applied the bots don't lose their mind. llvm-svn: 292901
* Implement LWG#2778: basic_string_view is missing constexpr.Marshall Clow2017-01-231-0/+50
| | | | llvm-svn: 292823
* Revert previous cleanup; I got too agressive removing #ifdefsMarshall Clow2017-01-231-0/+2
| | | | llvm-svn: 292809
* Removed some un-needed ifdefsMarshall Clow2017-01-231-2/+0
| | | | llvm-svn: 292806
* Fix recent build errorsEric Fiselier2017-01-213-3/+8
| | | | llvm-svn: 292689
* Implement P0513R0 - "Poisoning the Hash"Eric Fiselier2017-01-2123-47/+812
| | | | | | | | | | | | | | | | | | | | | Summary: Exactly what the title says. This patch also adds a `std::hash<nullptr_t>` specialization in C++17, but it was not added by this paper and I can't find the actual paper that adds it. See http://wg21.link/P0513R0 for more info. If there are no comments in the next couple of days I'll commit this Reviewers: mclow.lists, K-ballo, EricWF Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D28938 llvm-svn: 292684
* Don't default older GCC's to C++17, but C++14 or C++11 insteadEric Fiselier2017-01-201-0/+9
| | | | llvm-svn: 292607
* Revert "Don't default older GCC's to C++17, but C++14 or C++11 instead"Eric Fiselier2017-01-201-8/+0
| | | | | | | The commit isn't quite right, and I want to only have to merge one commit into 4.0 llvm-svn: 292606
* Don't default older GCC's to C++17, but C++14 or C++11 insteadEric Fiselier2017-01-201-0/+8
| | | | llvm-svn: 292605
* Refactor unique_ptr/shared_ptr deleter test types into single header.Eric Fiselier2017-01-2049-121/+94
| | | | llvm-svn: 292577
* Fix demangle helper after r286788Eric Fiselier2017-01-202-4/+2
| | | | llvm-svn: 292541
* Adjust msvc_stdlib_force_include.hpp to handle clang++Eric Fiselier2017-01-192-83/+81
| | | | | | | | | | | | Summary: This patch adjusts the newly added `msvc_stdlib_force_include.hpp` so that it also works when used with `clang++`. Reviewers: STL_MSFT Reviewed By: STL_MSFT Differential Revision: https://reviews.llvm.org/D28917 llvm-svn: 292539
* [libcxx] [test] Add msvc_stdlib_force_include.hpp.Stephan T. Lavavej2017-01-181-0/+79
| | | | | | | | | No functional change; nothing includes this, instead our test harness injects it via the /FI compiler option. No code review; blessed in advance by EricWF. llvm-svn: 292443
OpenPOWER on IntegriCloud