c79549b70e66c251c15dd145c964edb70fa2e2b3 |
|
17-Jan-2018 |
Dan Albert <danalbert@google.com> |
Revert "Revert "Merge to upstream r304942."" This reverts commit 38a0d5af7e5d13553fe623053e05dffc06403280. Test: make checkbuild Test: ./run_tests.py Test: ./run_tests.py --bitness 64
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.dltr/unique.ptr.dltr.dflt1/convert_ctor.pass.cpp
|
38a0d5af7e5d13553fe623053e05dffc06403280 |
|
11-Jan-2018 |
Dan Albert <danalbert@google.com> |
Revert "Merge to upstream r304942." This reverts commit 83b1388ecd96b1cc641522ae3b6338898be32a17, reversing changes made to f20819f925e1ca67fc187e5f08413624a5994efc. Test: treehugger Bug: None
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.dltr/unique.ptr.dltr.dflt1/convert_ctor.pass.cpp
|
81f58e5052d3f4631b7b3e5f37df9dd5b51cc926 |
|
15-Apr-2017 |
Eric Fiselier <eric@efcs.ca> |
Rewrite and cleanup unique_ptr tests. This patch almost entirely rewrites the unique_ptr tests. There are a couple of reasons for this: A) Most of the *.fail.cpp tests were either incorrect or could be better written as a *.pass.cpp test that uses <type_traits> to check if certain operations are valid (Ex. Using static_assert(!std::is_copy_constructible_v<T>) instead of writing a failure test). B) [unique.ptr.runtime] has very poor test coverage. Many of the constructors and assignment operators have to tests at all. The special members that have tests have very few test cases and are typically way out of date. C) The tests for [unique.ptr.single] and [unique.ptr.runtime] are largely duplicates of each other. This means common requirements have two different sets of tests in two different test files. This makes the tests harder to maintain than if there was a single copy. To address (A) this patch changes almost all of the *.fail.cpp tests into .pass.cpp tests using type traits; Allowing the *.fail.cpp tests to be removed. The address (B) and (C) the tests for [unique.ptr.single] and [unique.ptr.runtime] have been combined into a single directory, allowing both specializations to share common tests. Tests specific to the single/runtime specializations are given the suffix "*.single.pass.cpp" or "*.runtime.pass.cpp". Finally the unique.ptr test have been moved into the correct directory according to the standard. Specifically they have been removed from "utilities/memory" into "utilities/smartptr". PS. This patch also adds newly written tests for upcoming unique_ptr changes/fixes. However since these tests don't currently pass they are guarded by the macro TEST_WORKAROUND_UPCOMING_UNIQUE_PTR_CHANGES. This allows other STL's to validate the tests before libc++ implements the changes. The relevant libc++ changes should land in the next week. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@300388 91177308-0d34-0410-b5e6-96231b3b80d8
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.dltr/unique.ptr.dltr.dflt1/convert_ctor.pass.cpp
|