diff options
author | Eric Fiselier <eric@efcs.ca> | 2014-11-04 05:11:41 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2014-11-04 05:11:41 +0000 |
commit | 446e4b6be1ea99c88924ae6ee588eafa63264018 (patch) | |
tree | dad3c8cda79c36a1f4e8519c42f214bb2769e60f /libcxx/test | |
parent | 1baf2359df5c69d13befb2921372a3b6a03ea7cc (diff) | |
download | bcm5719-llvm-446e4b6be1ea99c88924ae6ee588eafa63264018.tar.gz bcm5719-llvm-446e4b6be1ea99c88924ae6ee588eafa63264018.zip |
Mark tests that replace operator new/delete as UNSUPPORTED with ASAN and MSAN.
tests that replace operator new/delete won't link when using ASAN and MSAN
because these sanitizers also replace new/delete.
llvm-svn: 221236
Diffstat (limited to 'libcxx/test')
32 files changed, 68 insertions, 6 deletions
diff --git a/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_iter_iter.pass.cpp b/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_iter_iter.pass.cpp index 625004b5c7d..50a861bf51a 100644 --- a/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_iter_iter.pass.cpp +++ b/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_iter_iter.pass.cpp @@ -12,6 +12,8 @@ // template <InputIterator Iter> // iterator insert(const_iterator position, Iter first, Iter last); +// UNSUPPORTED: asan + #if _LIBCPP_DEBUG >= 1 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) #endif diff --git a/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp b/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp index ce2d386e91f..7ac3672dc6a 100644 --- a/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp +++ b/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp @@ -11,6 +11,8 @@ // iterator insert(const_iterator position, size_type n, const value_type& x); +// UNSUPPORTED: asan + #if _LIBCPP_DEBUG >= 1 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) #endif diff --git a/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_value.pass.cpp b/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_value.pass.cpp index 1b097e362e9..e8fd210918c 100644 --- a/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_value.pass.cpp +++ b/libcxx/test/containers/sequences/list/list.modifiers/insert_iter_value.pass.cpp @@ -11,6 +11,8 @@ // iterator insert(const_iterator position, const value_type& x); +// UNSUPPORTED: asan + #if _LIBCPP_DEBUG >= 1 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) #endif diff --git a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp index 63f847f4d04..3ab9f1b0f1e 100644 --- a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp +++ b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp @@ -7,7 +7,8 @@ // //===----------------------------------------------------------------------===// - // test operator new[] +// test operator new[] + #include <new> #include <cstddef> diff --git a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp index 60bc7c40928..3dcfa321d7d 100644 --- a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp +++ b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp @@ -7,7 +7,8 @@ // //===----------------------------------------------------------------------===// - // test operator new [] (nothrow) +// test operator new [] (nothrow) + #include <new> #include <cstddef> diff --git a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow_replace.pass.cpp b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow_replace.pass.cpp index 9bf6e8a8ceb..117a1a58d2c 100644 --- a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow_replace.pass.cpp +++ b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow_replace.pass.cpp @@ -7,7 +7,9 @@ // //===----------------------------------------------------------------------===// - // test operator new [] nothrow by replacing only operator new +// test operator new [] nothrow by replacing only operator new + +// UNSUPPORTED: asan #include <new> #include <cstddef> diff --git a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_replace.pass.cpp b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_replace.pass.cpp index 959bc450fa4..62b0940f3cb 100644 --- a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_replace.pass.cpp +++ b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_replace.pass.cpp @@ -7,7 +7,9 @@ // //===----------------------------------------------------------------------===// - // test operator new[] replacement by replacing only operator new +// test operator new[] replacement by replacing only operator new + +// UNSUPPORTED: asan #include <new> #include <cstddef> diff --git a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new_nothrow_replace.pass.cpp b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new_nothrow_replace.pass.cpp index ed3c0355576..7f0a32e1cbf 100644 --- a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new_nothrow_replace.pass.cpp +++ b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new_nothrow_replace.pass.cpp @@ -7,7 +7,9 @@ // //===----------------------------------------------------------------------===// - // test operator new nothrow by replacing only operator new +// test operator new nothrow by replacing only operator new + +// UNSUPPORTED: asan #include <new> #include <cstddef> diff --git a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new_replace.pass.cpp b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new_replace.pass.cpp index 7646097c413..8ac77b1c7ed 100644 --- a/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new_replace.pass.cpp +++ b/libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new_replace.pass.cpp @@ -7,7 +7,9 @@ // //===----------------------------------------------------------------------===// - // test operator new replacement +// test operator new replacement + +// UNSUPPORTED: asan #include <new> #include <cstddef> diff --git a/libcxx/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp b/libcxx/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp index 6d9e1cde6cb..4f1292f26d1 100644 --- a/libcxx/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp +++ b/libcxx/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp @@ -13,6 +13,8 @@ // ~ctype(); +// UNSUPPORTED: asan + #include <locale> #include <cassert> #include <new> diff --git a/libcxx/test/localization/locale.stdcvt/codecvt_utf16.pass.cpp b/libcxx/test/localization/locale.stdcvt/codecvt_utf16.pass.cpp index 0569e4dcc1c..60d5500c6fa 100644 --- a/libcxx/test/localization/locale.stdcvt/codecvt_utf16.pass.cpp +++ b/libcxx/test/localization/locale.stdcvt/codecvt_utf16.pass.cpp @@ -17,6 +17,8 @@ // // unspecified // }; +// UNSUPPORTED: asan + // Not a portable test #include <codecvt> diff --git a/libcxx/test/localization/locale.stdcvt/codecvt_utf8.pass.cpp b/libcxx/test/localization/locale.stdcvt/codecvt_utf8.pass.cpp index 4232f5944c1..e3275d3584a 100644 --- a/libcxx/test/localization/locale.stdcvt/codecvt_utf8.pass.cpp +++ b/libcxx/test/localization/locale.stdcvt/codecvt_utf8.pass.cpp @@ -17,6 +17,8 @@ // // unspecified // }; +// UNSUPPORTED: asan + // Not a portable test #include <codecvt> diff --git a/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/ctor.pass.cpp b/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/ctor.pass.cpp index 6935c3e8405..43b3235f28f 100644 --- a/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/ctor.pass.cpp +++ b/libcxx/test/localization/locales/locale.convenience/conversions/conversions.buffer/ctor.pass.cpp @@ -14,6 +14,8 @@ // wbuffer_convert(streambuf *bytebuf = 0, Codecvt *pcvt = new Codecvt, // state_type state = state_type()); +// UNSUPPORTED: asan + #include <locale> #include <codecvt> #include <sstream> diff --git a/libcxx/test/localization/locales/locale/locale.cons/default.pass.cpp b/libcxx/test/localization/locales/locale/locale.cons/default.pass.cpp index 0d46a763de2..6326ce80180 100644 --- a/libcxx/test/localization/locales/locale/locale.cons/default.pass.cpp +++ b/libcxx/test/localization/locales/locale/locale.cons/default.pass.cpp @@ -11,6 +11,8 @@ // locale() throw(); +// UNSUPPORTED: asan + #include <locale> #include <new> #include <cassert> diff --git a/libcxx/test/localization/locales/locale/locale.members/combine.pass.cpp b/libcxx/test/localization/locales/locale/locale.members/combine.pass.cpp index 8d74da025bb..8dd77427200 100644 --- a/libcxx/test/localization/locales/locale/locale.members/combine.pass.cpp +++ b/libcxx/test/localization/locales/locale/locale.members/combine.pass.cpp @@ -11,6 +11,8 @@ // template <class Facet> locale combine(const locale& other) const; +// UNSUPPORTED: asan + #include <locale> #include <new> #include <cassert> diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp index 44252b4b94b..a0b570147f2 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp @@ -14,6 +14,8 @@ // template <MoveConstructible R, MoveConstructible ... ArgTypes> // void swap(function<R(ArgTypes...)>&, function<R(ArgTypes...)>&); +// UNSUPPORTED: asan + #include <functional> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F.pass.cpp index 92f99cd6cd2..88d9ae62f72 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F.pass.cpp @@ -13,6 +13,8 @@ // function(nullptr_t); +// UNSUPPORTED: asan + #include <functional> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_assign.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_assign.pass.cpp index de16998481c..f7fc5526f1a 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_assign.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_assign.pass.cpp @@ -16,6 +16,8 @@ // && Convertible<Callable<F, ArgTypes...>::result_type // operator=(F f); +// UNSUPPORTED: asan + #include <functional> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp index f758a4d8cfe..a02f6500970 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp @@ -13,6 +13,8 @@ // template<class A> function(allocator_arg_t, const A&, const function&); +// UNSUPPORTED: asan + #include <functional> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp index 570c27e3f85..10ee8fedb1f 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp @@ -13,6 +13,8 @@ // template<class A> function(allocator_arg_t, const A&, function&&); +// UNSUPPORTED: asan + #include <functional> #include <cassert> diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy.pass.cpp index cf7b96314f7..f49f31bda94 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy.pass.cpp @@ -13,6 +13,8 @@ // function(const function& f); +// UNSUPPORTED: asan + #include <functional> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp index 544ec439ba9..5d72041d886 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp @@ -13,6 +13,8 @@ // function& operator=(const function& f); +// UNSUPPORTED: asan + #include <functional> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign.pass.cpp index 12a2b6e2d34..9b2d9a72c94 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign.pass.cpp @@ -13,6 +13,8 @@ // function& operator=(nullptr_t); +// UNSUPPORTED: asan + #include <functional> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/swap.pass.cpp b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/swap.pass.cpp index dc56574a288..8c3e0f8a41d 100644 --- a/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/swap.pass.cpp +++ b/libcxx/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/swap.pass.cpp @@ -13,6 +13,8 @@ // void swap(function& other); +// UNSUPPORTED: asan + #include <functional> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp b/libcxx/test/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp index f881805e30d..8e2efc3c6f9 100644 --- a/libcxx/test/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp +++ b/libcxx/test/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp @@ -12,6 +12,8 @@ // allocator: // pointer allocate(size_type n, allocator<void>::const_pointer hint=0); +// UNSUPPORTED: asan + #include <memory> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/memory/default.allocator/allocator.members/construct.pass.cpp b/libcxx/test/utilities/memory/default.allocator/allocator.members/construct.pass.cpp index 7e1500b7311..2da6fc3413b 100644 --- a/libcxx/test/utilities/memory/default.allocator/allocator.members/construct.pass.cpp +++ b/libcxx/test/utilities/memory/default.allocator/allocator.members/construct.pass.cpp @@ -12,6 +12,8 @@ // allocator: // template <class... Args> void construct(pointer p, Args&&... args); +// UNSUPPORTED: asan + #include <memory> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp index 27046cf5ca7..fc3fd04fea5 100644 --- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp +++ b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp @@ -11,6 +11,8 @@ // template<class Y> explicit shared_ptr(auto_ptr<Y>&& r); +// UNSUPPORTED: asan + #include <memory> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_throw.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_throw.pass.cpp index e8365ae3ea0..04fea401385 100644 --- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_throw.pass.cpp +++ b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_throw.pass.cpp @@ -13,6 +13,8 @@ // template<class D> shared_ptr(nullptr_t, D d); +// UNSUPPORTED: asan + #include <memory> #include <cassert> #include <new> diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_throw.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_throw.pass.cpp index 79aaa58ac05..9ce8feb9fc2 100644 --- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_throw.pass.cpp +++ b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_throw.pass.cpp @@ -13,6 +13,8 @@ // template<class Y, class D> shared_ptr(Y* p, D d); +// UNSUPPORTED: asan + #include <memory> #include <cassert> #include <new> diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_throw.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_throw.pass.cpp index d50d91c2ed8..17569ae4044 100644 --- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_throw.pass.cpp +++ b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_throw.pass.cpp @@ -11,6 +11,8 @@ // template<class Y> explicit shared_ptr(Y* p); +// UNSUPPORTED: asan + #include <memory> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp index b8418338beb..58ea3092cf2 100644 --- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp +++ b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp @@ -11,6 +11,8 @@ // template <class Y, class D> explicit shared_ptr(unique_ptr<Y, D>&&r); +// UNSUPPORTED: asan + #include <memory> #include <new> #include <cstdlib> diff --git a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp index eda148cf6ca..a3bf838196b 100644 --- a/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp +++ b/libcxx/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp @@ -13,6 +13,8 @@ // template<class T, class... Args> shared_ptr<T> make_shared(Args&&... args); +// UNSUPPORTED: asan + #include <memory> #include <new> #include <cstdlib> |