summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-02 01:09:12 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-02 01:09:12 +0000
commit39a724ea368979599a5387dc812c4b63f14bb082 (patch)
tree87080d90e7bcfad09bd509fcc73a3e2bace28f65 /libcxx/test
parent0447bde044ace6bbeda380c061ac859eaa3170fb (diff)
downloadbcm5719-llvm-39a724ea368979599a5387dc812c4b63f14bb082.tar.gz
bcm5719-llvm-39a724ea368979599a5387dc812c4b63f14bb082.zip
Remove enable_shared_from_this test since it leaks the control block and fails with ASAN
llvm-svn: 271459
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp
index 4233d765320..66933040671 100644
--- a/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp
+++ b/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.enab/enable_shared_from_this.pass.cpp
@@ -88,32 +88,6 @@ int main()
}
#endif
}
- // Test LWG issue 2529 again. This time check that an expired pointer
- // is replaced.
- {
- T* ptr = new T;
- std::weak_ptr<T> weak;
- {
- std::shared_ptr<T> s(ptr, &nullDeleter);
- assert(ptr->shared_from_this() == s);
- weak = s;
- assert(!weak.expired());
- }
- assert(weak.expired());
- weak.reset();
-#ifndef TEST_HAS_NO_EXCEPTIONS
- try {
- ptr->shared_from_this();
- assert(false);
- } catch (std::bad_weak_ptr const&) {
- } catch (...) { assert(false); }
-#endif
- {
- std::shared_ptr<T> s2(ptr, &nullDeleter);
- assert(ptr->shared_from_this() == s2);
- }
- delete ptr;
- }
// Test weak_from_this_methods
#if TEST_STD_VER > 14
{
OpenPOWER on IntegriCloud