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
This commit is contained in:
Eric Fiselier 2014-11-04 05:11:41 +00:00
parent 1de15f518f
commit 72aab5f478
32 changed files with 68 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -7,7 +7,8 @@
//
//===----------------------------------------------------------------------===//
// test operator new[]
// test operator new[]
#include <new>
#include <cstddef>

View File

@ -7,7 +7,8 @@
//
//===----------------------------------------------------------------------===//
// test operator new [] (nothrow)
// test operator new [] (nothrow)
#include <new>
#include <cstddef>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -7,7 +7,9 @@
//
//===----------------------------------------------------------------------===//
// test operator new replacement
// test operator new replacement
// UNSUPPORTED: asan
#include <new>
#include <cstddef>

View File

@ -13,6 +13,8 @@
// ~ctype();
// UNSUPPORTED: asan
#include <locale>
#include <cassert>
#include <new>

View File

@ -17,6 +17,8 @@
// // unspecified
// };
// UNSUPPORTED: asan
// Not a portable test
#include <codecvt>

View File

@ -17,6 +17,8 @@
// // unspecified
// };
// UNSUPPORTED: asan
// Not a portable test
#include <codecvt>

View File

@ -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>

View File

@ -11,6 +11,8 @@
// locale() throw();
// UNSUPPORTED: asan
#include <locale>
#include <new>
#include <cassert>

View File

@ -11,6 +11,8 @@
// template <class Facet> locale combine(const locale& other) const;
// UNSUPPORTED: asan
#include <locale>
#include <new>
#include <cassert>

View File

@ -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>

View File

@ -13,6 +13,8 @@
// function(nullptr_t);
// UNSUPPORTED: asan
#include <functional>
#include <new>
#include <cstdlib>

View File

@ -16,6 +16,8 @@
// && Convertible<Callable<F, ArgTypes...>::result_type
// operator=(F f);
// UNSUPPORTED: asan
#include <functional>
#include <new>
#include <cstdlib>

View File

@ -13,6 +13,8 @@
// template<class A> function(allocator_arg_t, const A&, const function&);
// UNSUPPORTED: asan
#include <functional>
#include <new>
#include <cstdlib>

View File

@ -13,6 +13,8 @@
// template<class A> function(allocator_arg_t, const A&, function&&);
// UNSUPPORTED: asan
#include <functional>
#include <cassert>

View File

@ -13,6 +13,8 @@
// function(const function& f);
// UNSUPPORTED: asan
#include <functional>
#include <new>
#include <cstdlib>

View File

@ -13,6 +13,8 @@
// function& operator=(const function& f);
// UNSUPPORTED: asan
#include <functional>
#include <new>
#include <cstdlib>

View File

@ -13,6 +13,8 @@
// function& operator=(nullptr_t);
// UNSUPPORTED: asan
#include <functional>
#include <new>
#include <cstdlib>

View File

@ -13,6 +13,8 @@
// void swap(function& other);
// UNSUPPORTED: asan
#include <functional>
#include <new>
#include <cstdlib>

View File

@ -12,6 +12,8 @@
// allocator:
// pointer allocate(size_type n, allocator<void>::const_pointer hint=0);
// UNSUPPORTED: asan
#include <memory>
#include <new>
#include <cstdlib>

View File

@ -12,6 +12,8 @@
// allocator:
// template <class... Args> void construct(pointer p, Args&&... args);
// UNSUPPORTED: asan
#include <memory>
#include <new>
#include <cstdlib>

View File

@ -11,6 +11,8 @@
// template<class Y> explicit shared_ptr(auto_ptr<Y>&& r);
// UNSUPPORTED: asan
#include <memory>
#include <new>
#include <cstdlib>

View File

@ -13,6 +13,8 @@
// template<class D> shared_ptr(nullptr_t, D d);
// UNSUPPORTED: asan
#include <memory>
#include <cassert>
#include <new>

View File

@ -13,6 +13,8 @@
// template<class Y, class D> shared_ptr(Y* p, D d);
// UNSUPPORTED: asan
#include <memory>
#include <cassert>
#include <new>

View File

@ -11,6 +11,8 @@
// template<class Y> explicit shared_ptr(Y* p);
// UNSUPPORTED: asan
#include <memory>
#include <new>
#include <cstdlib>

View File

@ -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>

View File

@ -13,6 +13,8 @@
// template<class T, class... Args> shared_ptr<T> make_shared(Args&&... args);
// UNSUPPORTED: asan
#include <memory>
#include <new>
#include <cstdlib>