Skip to content

Commit 766233b

Browse files
committed
Fix issues with UBSAN test configuration.
On Apple the test feature 'sanitizer-new-delete' was incorrectly getting added to the LIT feature set, which mistakenly caused tests to be disabled when using UBSAN (the feature is only needed with ASAN/MSAN/TSAN). llvm-svn: 307518
1 parent cc85930 commit 766233b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

libcxx/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/default_throws_bad_alloc.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// UNSUPPORTED: c++98, c++03, c++11
1717

1818
// The sanitizers replace new/delete with versions that do not throw bad_alloc.
19-
// UNSUPPORTED: sanitizer-new-delete, ubsan
19+
// UNSUPPORTED: sanitizer-new-delete
2020

2121

2222
#include <experimental/dynarray>

libcxx/utils/libcxx/test/target_info.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@ def allow_cxxabi_link(self):
169169
# should be available in libc++ directly.
170170
return False
171171

172-
def add_sanitizer_features(self, sanitizer_type, features):
173-
if sanitizer_type == 'Undefined':
174-
features.add('sanitizer-new-delete')
175-
176172

177173
class FreeBSDLocalTI(DefaultTargetInfo):
178174
def __init__(self, full_config):

0 commit comments

Comments
 (0)