eo: add infrastructure to test critical Eina Error.

This commit is contained in:
Cedric BAIL 2018-05-22 16:14:20 -07:00
parent 48738d125c
commit 0c0f2b75e4
1 changed files with 6 additions and 0 deletions

View File

@ -27,4 +27,10 @@ eo_test_safety_print_cb(const Eina_Log_Domain *d, Eina_Log_Level level, const ch
ctx.did = EINA_FALSE; \
ctx.expected_level = EINA_LOG_LEVEL_ERR
#define TEST_EO_CRITICAL(fn, _msg) \
ctx.msg = _msg; \
ctx.fnc = fn; \
ctx.did = EINA_FALSE; \
ctx.expected_level = EINA_LOG_LEVEL_CRITICAL
#endif /* _EO_ERROR_MSGS_H */