diff --git a/tests/coverage.h b/tests/coverage.h index 6e6b9c3f..622212b5 100644 --- a/tests/coverage.h +++ b/tests/coverage.h @@ -150,6 +150,14 @@ #undef M_CHECK_DEFAULT_TYPE #undef M_CHECK_SAME #undef isspace +#elif defined(BUILD_COVERAGE) +// Overload assert to avoid polluting final branch coverage +// No need to provide debug outputs. Just abort in case of error. +#undef assert +static void assert(int cond) +{ + if (!cond) abort(); +} #else /* For normal builds, empty macros which does nothing */ #define START_COVERAGE