From 0c0f2b75e4c672ccab97f66b71f03824bc819460 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 22 May 2018 16:14:20 -0700 Subject: [PATCH] eo: add infrastructure to test critical Eina Error. --- src/tests/eo/suite/eo_error_msgs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tests/eo/suite/eo_error_msgs.h b/src/tests/eo/suite/eo_error_msgs.h index c3690fd345..56819040c0 100644 --- a/src/tests/eo/suite/eo_error_msgs.h +++ b/src/tests/eo/suite/eo_error_msgs.h @@ -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 */