HomeClusterLabs Projects

Test: libcrmcommon: Add wrapper around abort() for unit tests.

Description

Test: libcrmcommon: Add wrapper around abort() for unit tests.

This is always enabled for unit tests and does not affect when we are
building for real. This is needed to ensure that code that aborts still
writes out code coverage numbers. See comments for details.

Additionally, call gcov_dump where we would call _exit() in our
pcmk
assert_* macros for the same reason.

Details

Provenance
clumensAuthored on Dec 19 2023, 1:22 PM
Parents
rP5cb41aa40a72: Feature: Build: Add a cpp define and makefile variable for coverage.
Branches
Unknown
Tags
Unknown