[PATCH] [libcxx] Consolidate new/delete replacement in tests and disable it when using sanitizers.
Eric Fiselier
eric at efcs.ca
Sun Dec 7 19:27:57 PST 2014
Hi mclow.lists, danalbert, jroelofs,
MSAN and ASAN also replace new/delete which leads to a link error in these tests. Currently they are unsupported but I think it would be useful if these tests could run with sanitizers.
This patch creates a support header that consolidates the new/delete replacement functionality and adds an assertion macro to be used along side it.
When we are using sanitizers new and delete are no longer replaced and the assertion macro becomes a nop.
http://reviews.llvm.org/D6562
Files:
test/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.dtor/dtor.pass.cpp
test/localization/locale.stdcvt/codecvt_utf16.pass.cpp
test/localization/locale.stdcvt/codecvt_utf8.pass.cpp
test/localization/locales/locale.convenience/conversions/conversions.buffer/ctor.pass.cpp
test/localization/locales/locale/locale.cons/default.pass.cpp
test/localization/locales/locale/locale.members/combine.pass.cpp
test/support/count_new.hpp
test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.alg/swap.pass.cpp
test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F.pass.cpp
test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/F_assign.pass.cpp
test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_function.pass.cpp
test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/alloc_rfunction.pass.cpp
test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy.pass.cpp
test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/copy_assign.pass.cpp
test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/nullptr_t_assign.pass.cpp
test/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.mod/swap.pass.cpp
test/utilities/memory/default.allocator/allocator.members/allocate.pass.cpp
test/utilities/memory/default.allocator/allocator.members/construct.pass.cpp
test/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6562.17027.patch
Type: text/x-patch
Size: 39334 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141208/d0178a52/attachment.bin>
More information about the cfe-commits
mailing list