cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0c0f2b75e4c672ccab97f66b71f03824bc819460

commit 0c0f2b75e4c672ccab97f66b71f03824bc819460
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue May 22 16:14:20 2018 -0700

    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 */

-- 


Reply via email to