Commit 9c4c1320 authored by Mark Andrews's avatar Mark Andrews
Browse files

Merge branch '720-model-_assert_true-for-coverity' into 'master'

Resolve "model _assert_true() for coverity"

Closes #720

See merge request !1108
parents 380ab3b3 9a4aa2aa
Pipeline #6982 failed with stages
in 9 minutes and 35 seconds
...@@ -94,3 +94,16 @@ void isc__mempool_put(void *mem, void *ptr FLARG) { ...@@ -94,3 +94,16 @@ void isc__mempool_put(void *mem, void *ptr FLARG) {
if (!mem) __coverity_panic__(); if (!mem) __coverity_panic__();
__coverity_free__(ptr); __coverity_free__(ptr);
} }
/*
* Cmocka models.
*/
#define LargestIntegralType unsigned long int
void _assert_true(const LargestIntegralType result,
const char * const expression,
const char * const file, const int line)
{
if (!result) __coverity_panic__();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment