Source
27
27
#include <setjmp.h>
28
28
#include <cmocka.h>
29
29
30
30
/* hint to a compiler that cmocka _fail returns immediately, so it does not raise 'uninitialized variable' warnings */
31
31
#if defined(__GNUC__) || defined(__clang__)
32
32
# define ZBX_NO_RETURN __attribute__((noreturn))
33
33
#else
34
34
# define ZBX_NO_RETURN
35
35
#endif
36
36
37
-
ZBX_NO_RETURN void _fail(const char * const file, const int line);
38
-
39
37
void zbx_mock_test_entry(void **state);
40
38
41
39
#endif /* ZABBIX_MOCK_TEST_H */