Mark more tests as UNSUPPORTED with ASAN and MSAN.
authorEric Fiselier <eric@efcs.ca>
Fri, 14 Nov 2014 02:55:16 +0000 (02:55 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 14 Nov 2014 02:55:16 +0000 (02:55 +0000)
These tests fail for 2 reasons when using ASAN and MSAN.
1. If allocator_may_return_null=0 they will fail because null is returned
   or an exception is thrown.
2. When allocator_may_return_null=1 the new_handler is still not called. This
   results in an assertion failures.

llvm-svn: 221967

libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp
libcxx/test/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp
libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new.pass.cpp
libcxx/test/language.support/support.dynamic/new.delete/new.delete.single/new_nothrow.pass.cpp

index 3ab9f1b..052d88f 100644 (file)
@@ -8,6 +8,8 @@
 //===----------------------------------------------------------------------===//
 
 // test operator new[]
+// NOTE: asan and msan will not call the new handler.
+// UNSUPPORTED: asan, msan
 
 
 #include <new>
index 3dcfa32..259f5b0 100644 (file)
@@ -8,6 +8,8 @@
 //===----------------------------------------------------------------------===//
 
 // test operator new [] (nothrow)
+// NOTE: asan and msan will not call the new handler.
+// UNSUPPORTED: asan, msan
 
 
 #include <new>
index 4d219e3..3ba71dd 100644 (file)
@@ -7,7 +7,10 @@
 //
 //===----------------------------------------------------------------------===//
 
- // test operator new
+// test operator new
+
+// asan and msan will not call the new handler.
+// UNSUPPORTED: asan, msan
 
 #include <new>
 #include <cstddef>
index c54d14e..c76bfa0 100644 (file)
@@ -7,7 +7,10 @@
 //
 //===----------------------------------------------------------------------===//
 
- // test operator new (nothrow)
+// test operator new (nothrow)
+
+// asan and msan will not call the new handler.
+// UNSUPPORTED: asan, msan
 
 #include <new>
 #include <cstddef>