From 72aab5f4784c10846d3ce21a8ce6c55434772b97 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 4 Nov 2014 05:11:41 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@221236 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../list/list.modifiers/insert_iter_iter_iter.pass.cpp | 2 ++ .../list/list.modifiers/insert_iter_size_value.pass.cpp | 2 ++ .../sequences/list/list.modifiers/insert_iter_value.pass.cpp | 2 ++ .../new.delete/new.delete.array/new_array.pass.cpp | 3 ++- .../new.delete/new.delete.array/new_array_nothrow.pass.cpp | 3 ++- .../new.delete.array/new_array_nothrow_replace.pass.cpp | 4 +++- .../new.delete/new.delete.array/new_array_replace.pass.cpp | 4 +++- .../new.delete/new.delete.single/new_nothrow_replace.pass.cpp | 4 +++- .../new.delete/new.delete.single/new_replace.pass.cpp | 4 +++- .../facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp | 2 ++ test/localization/locale.stdcvt/codecvt_utf16.pass.cpp | 2 ++ test/localization/locale.stdcvt/codecvt_utf8.pass.cpp | 2 ++ .../conversions/conversions.buffer/ctor.pass.cpp | 2 ++ test/localization/locales/locale/locale.cons/default.pass.cpp | 2 ++ .../locales/locale/locale.members/combine.pass.cpp | 2 ++ .../func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp | 2 ++ .../func.wrap/func.wrap.func/func.wrap.func.con/F.pass.cpp | 2 ++ .../func.wrap.func/func.wrap.func.con/F_assign.pass.cpp | 2 ++ .../func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp | 2 ++ .../func.wrap.func.con/alloc_rfunction.pass.cpp | 2 ++ .../func.wrap/func.wrap.func/func.wrap.func.con/copy.pass.cpp | 2 ++ .../func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp | 2 ++ .../func.wrap.func.con/nullptr_t_assign.pass.cpp | 2 ++ .../func.wrap/func.wrap.func/func.wrap.func.mod/swap.pass.cpp | 2 ++ .../default.allocator/allocator.members/allocate.pass.cpp | 2 ++ .../default.allocator/allocator.members/construct.pass.cpp | 2 ++ .../util.smartptr.shared.const/auto_ptr.pass.cpp | 2 ++ .../nullptr_t_deleter_throw.pass.cpp | 2 ++ .../util.smartptr.shared.const/pointer_deleter_throw.pass.cpp | 2 ++ .../util.smartptr.shared.const/pointer_throw.pass.cpp | 2 ++ .../util.smartptr.shared.const/unique_ptr.pass.cpp | 2 ++ .../util.smartptr.shared.create/make_shared.pass.cpp | 2 ++ 32 files changed, 68 insertions(+), 6 deletions(-) diff --git a/test/containers/sequences/list/list.modifiers/insert_iter_iter_iter.pass.cpp b/test/containers/sequences/list/list.modifiers/insert_iter_iter_iter.pass.cpp index 625004b5c..50a861bf5 100644 --- a/test/containers/sequences/list/list.modifiers/insert_iter_iter_iter.pass.cpp +++ b/test/containers/sequences/list/list.modifiers/insert_iter_iter_iter.pass.cpp @@ -12,6 +12,8 @@ // template // 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/test/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp b/test/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp index ce2d386e9..7ac3672dc 100644 --- a/test/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp +++ b/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/test/containers/sequences/list/list.modifiers/insert_iter_value.pass.cpp b/test/containers/sequences/list/list.modifiers/insert_iter_value.pass.cpp index 1b097e362..e8fd21091 100644 --- a/test/containers/sequences/list/list.modifiers/insert_iter_value.pass.cpp +++ b/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/test/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp b/test/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp index 63f847f4d..3ab9f1b0f 100644 --- a/test/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp +++ b/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 #include diff --git a/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp b/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp index 60bc7c409..3dcfa321d 100644 --- a/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp +++ b/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 #include diff --git a/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow_replace.pass.cpp b/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow_replace.pass.cpp index 9bf6e8a8c..117a1a58d 100644 --- a/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow_replace.pass.cpp +++ b/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 #include diff --git a/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_replace.pass.cpp b/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_replace.pass.cpp index 959bc450f..62b0940f3 100644 --- a/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_replace.pass.cpp +++ b/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 #include diff --git a/test/language.support/support.dynamic/new.delete/new.delete.single/new_nothrow_replace.pass.cpp b/test/language.support/support.dynamic/new.delete/new.delete.single/new_nothrow_replace.pass.cpp index ed3c03555..7f0a32e1c 100644 --- a/test/language.support/support.dynamic/new.delete/new.delete.single/new_nothrow_replace.pass.cpp +++ b/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 #include diff --git a/test/language.support/support.dynamic/new.delete/new.delete.single/new_replace.pass.cpp b/test/language.support/support.dynamic/new.delete/new.delete.single/new_replace.pass.cpp index 7646097c4..8ac77b1c7 100644 --- a/test/language.support/support.dynamic/new.delete/new.delete.single/new_replace.pass.cpp +++ b/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 #include diff --git a/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp b/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp index 6d9e1cde6..4f1292f26 100644 --- a/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp +++ b/test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp @@ -13,6 +13,8 @@ // ~ctype(); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/localization/locale.stdcvt/codecvt_utf16.pass.cpp b/test/localization/locale.stdcvt/codecvt_utf16.pass.cpp index 0569e4dcc..60d5500c6 100644 --- a/test/localization/locale.stdcvt/codecvt_utf16.pass.cpp +++ b/test/localization/locale.stdcvt/codecvt_utf16.pass.cpp @@ -17,6 +17,8 @@ // // unspecified // }; +// UNSUPPORTED: asan + // Not a portable test #include diff --git a/test/localization/locale.stdcvt/codecvt_utf8.pass.cpp b/test/localization/locale.stdcvt/codecvt_utf8.pass.cpp index 4232f5944..e3275d358 100644 --- a/test/localization/locale.stdcvt/codecvt_utf8.pass.cpp +++ b/test/localization/locale.stdcvt/codecvt_utf8.pass.cpp @@ -17,6 +17,8 @@ // // unspecified // }; +// UNSUPPORTED: asan + // Not a portable test #include diff --git a/test/localization/locales/locale.convenience/conversions/conversions.buffer/ctor.pass.cpp b/test/localization/locales/locale.convenience/conversions/conversions.buffer/ctor.pass.cpp index 6935c3e84..43b3235f2 100644 --- a/test/localization/locales/locale.convenience/conversions/conversions.buffer/ctor.pass.cpp +++ b/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 #include #include diff --git a/test/localization/locales/locale/locale.cons/default.pass.cpp b/test/localization/locales/locale/locale.cons/default.pass.cpp index 0d46a763d..6326ce801 100644 --- a/test/localization/locales/locale/locale.cons/default.pass.cpp +++ b/test/localization/locales/locale/locale.cons/default.pass.cpp @@ -11,6 +11,8 @@ // locale() throw(); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/localization/locales/locale/locale.members/combine.pass.cpp b/test/localization/locales/locale/locale.members/combine.pass.cpp index 8d74da025..8dd774272 100644 --- a/test/localization/locales/locale/locale.members/combine.pass.cpp +++ b/test/localization/locales/locale/locale.members/combine.pass.cpp @@ -11,6 +11,8 @@ // template locale combine(const locale& other) const; +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp index 44252b4b9..a0b570147 100644 --- a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp +++ b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp @@ -14,6 +14,8 @@ // template // void swap(function&, function&); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F.pass.cpp b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F.pass.cpp index 92f99cd6c..88d9ae62f 100644 --- a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F.pass.cpp +++ b/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 #include #include diff --git a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_assign.pass.cpp b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_assign.pass.cpp index de1699848..f7fc5526f 100644 --- a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_assign.pass.cpp +++ b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_assign.pass.cpp @@ -16,6 +16,8 @@ // && Convertible::result_type // operator=(F f); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp index f758a4d8c..a02f65009 100644 --- a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp +++ b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp @@ -13,6 +13,8 @@ // template function(allocator_arg_t, const A&, const function&); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp index 570c27e3f..10ee8fedb 100644 --- a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp +++ b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp @@ -13,6 +13,8 @@ // template function(allocator_arg_t, const A&, function&&); +// UNSUPPORTED: asan + #include #include diff --git a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy.pass.cpp b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy.pass.cpp index cf7b96314..f49f31bda 100644 --- a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy.pass.cpp +++ b/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 #include #include diff --git a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp index 544ec439b..5d72041d8 100644 --- a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp +++ b/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 #include #include diff --git a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign.pass.cpp b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign.pass.cpp index 12a2b6e2d..9b2d9a72c 100644 --- a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign.pass.cpp +++ b/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 #include #include diff --git a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/swap.pass.cpp b/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/swap.pass.cpp index dc56574a2..8c3e0f8a4 100644 --- a/test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/swap.pass.cpp +++ b/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 #include #include diff --git a/test/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp b/test/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp index f881805e3..8e2efc3c6 100644 --- a/test/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp +++ b/test/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp @@ -12,6 +12,8 @@ // allocator: // pointer allocate(size_type n, allocator::const_pointer hint=0); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/memory/default.allocator/allocator.members/construct.pass.cpp b/test/utilities/memory/default.allocator/allocator.members/construct.pass.cpp index 7e1500b73..2da6fc341 100644 --- a/test/utilities/memory/default.allocator/allocator.members/construct.pass.cpp +++ b/test/utilities/memory/default.allocator/allocator.members/construct.pass.cpp @@ -12,6 +12,8 @@ // allocator: // template void construct(pointer p, Args&&... args); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp index 27046cf5c..fc3fd04fe 100644 --- a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp +++ b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/auto_ptr.pass.cpp @@ -11,6 +11,8 @@ // template explicit shared_ptr(auto_ptr&& r); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_throw.pass.cpp b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_throw.pass.cpp index e8365ae3e..04fea4013 100644 --- a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_throw.pass.cpp +++ b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/nullptr_t_deleter_throw.pass.cpp @@ -13,6 +13,8 @@ // template shared_ptr(nullptr_t, D d); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_throw.pass.cpp b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_throw.pass.cpp index 79aaa58ac..9ce8feb9f 100644 --- a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_throw.pass.cpp +++ b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_deleter_throw.pass.cpp @@ -13,6 +13,8 @@ // template shared_ptr(Y* p, D d); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_throw.pass.cpp b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_throw.pass.cpp index d50d91c2e..17569ae40 100644 --- a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_throw.pass.cpp +++ b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer_throw.pass.cpp @@ -11,6 +11,8 @@ // template explicit shared_ptr(Y* p); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp index b8418338b..58ea3092c 100644 --- a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp +++ b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp @@ -11,6 +11,8 @@ // template explicit shared_ptr(unique_ptr&&r); +// UNSUPPORTED: asan + #include #include #include diff --git a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp index eda148cf6..a3bf83819 100644 --- a/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp +++ b/test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp @@ -13,6 +13,8 @@ // template shared_ptr make_shared(Args&&... args); +// UNSUPPORTED: asan + #include #include #include