[cfe-users] marking gtest runs as failed when errors by sanitizers are found

Alexey Samsonov vonosmas at gmail.com
Wed Apr 29 11:27:36 PDT 2015


What specific sanitizer do you refer to? They behave differently - e.g.
ASan and MSan by default crash the process after the fist bug is found.
TSan prints all the error reports, and tries to crash the process with
non-zero exitcode at the end, if at least one issue was found. UBSan by
default doesn't crash the process, but can be instructed to do so by adding
-fno-sanitize-recover=all to your compile flags.

On Wed, Apr 29, 2015 at 12:19 AM, Stepniak, Artur (Nokia - PL/Wroclaw) <
artur.stepniak at nokia.com> wrote:

>  Hi,
> as in the topic. Currently when errors by clang sanitizers are found the
> tests is still marked as passed which complicates our CI because we'd need
> to implement parsing of console output. Is there a way to make gtest fail
> in such situation?
> Regards,
> Artur
> _______________________________________________
> cfe-users mailing list
> cfe-users at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-users

Alexey Samsonov
vonosmas at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20150429/aec5a18a/attachment.html>

More information about the cfe-users mailing list