catchorg/Catch2

First-class support for sanitizers

開放

#1,730 建立於 2019年8月18日

 (2 則留言) (3 個反應) (0 位負責人)C++ (3,228 個分叉)batch import
Feature RequestHelp wanted

倉庫指標

星標
 (20,381 顆星)
PR 合併指標
 (平均合併 1天 8小時) (30 天內合併 1 個 PR)

描述

Description When running tests in continuous integration, it is rather common to use sanitizers (ubsan, asan, tsan, etc.). It would be nice if Catch2 reported errors as usual and logged the information that it generally logs when a test fails, such as the seed that was passed to the command line if any.

In libc++ at least, the sanitizers have a public API: https://github.com/llvm-mirror/compiler-rt/blob/release_36/include/sanitizer/common_interface_defs.h

It might be possible to do something with __sanitizer_set_death_callback or the other sanitizer-specific callbacks that can be found in the other headers in the same directory.

貢獻者指南