summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-22 16:14:20 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-22 16:55:10 -0700
commitaf4d193a715853192865f6d3795b81bdf3f9b762 (patch)
tree95756ac020cd569ec455cfe9d153b201291fa5d7
parentdc617b6da7c20ffc47dcd513b129e0d23072062a (diff)
downloadefl-af4d193a715853192865f6d3795b81bdf3f9b762.tar.gz
eo: add infrastructure to test critical Eina Error.
-rw-r--r--src/tests/eo/suite/eo_error_msgs.h6
1 files changed, 6 insertions, 0 deletions
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 */