[PATCH] D12354: [libcxx] Add global assertion handler for debug mode.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 25 22:07:11 PDT 2015


EricWF created this revision.
EricWF added a reviewer: mclow.lists.
EricWF added a subscriber: cfe-commits.

This patch adds a global assertion handler that is called when _LIBCPP_ASSERT fails. This allows us to test debug mode features without _LIBCPP_ASSERT always calling `abort()`.

This patch also fixes PR17147 and uses the new assertion handlers in the tests. (see https://llvm.org/bugs/show_bug.cgi?id=17147)

http://reviews.llvm.org/D12354

Files:
  include/__debug
  include/algorithm
  src/debug.cpp
  test/libcxx/algorithms/debug_less.pass.cpp
  test/support/debug_mode.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12354.33178.patch
Type: text/x-patch
Size: 8476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150826/b253fe33/attachment.bin>


More information about the cfe-commits mailing list