summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-06 10:52:08 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-02-14 09:01:10 +0100
commitf57b24b86b213a55564923deaf376a6cf6a77767 (patch)
treefb18aea8d900de839306518c52aa5db1c4ad6e8e
parente84c1b6bf8377aca8d92b6c884c0d7f481c3b75b (diff)
efl-check: do not print expected errors
that is just a waste of log space. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11297
-rw-r--r--src/tests/efl_check.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tests/efl_check.h b/src/tests/efl_check.h
index abb114e..c66e321 100644
--- a/src/tests/efl_check.h
+++ b/src/tests/efl_check.h
@@ -45,6 +45,11 @@
45# endif 45# endif
46#endif 46#endif
47 47
48/* Uncomment this line to print a warning line to stdout for every expected error received.
49 Otherwise, expected errors are just silently ignored, greatly reducing the log size.
50*/
51//#define PRINT_EXPECTED_ERROR
52
48#define DISABLE_ABORT_ON_CRITICAL_START \ 53#define DISABLE_ABORT_ON_CRITICAL_START \
49 do { \ 54 do { \
50 int ___val = eina_log_abort_on_critical_get(); \ 55 int ___val = eina_log_abort_on_critical_get(); \
@@ -84,8 +89,11 @@ _efl_test_expect_error(const Eina_Log_Domain *d EINA_UNUSED, Eina_Log_Level leve
84{ 89{
85 Eina_Bool *error = (Eina_Bool*) data; 90 Eina_Bool *error = (Eina_Bool*) data;
86 if (level == EINA_LOG_LEVEL_ERR) *error = EINA_TRUE; 91 if (level == EINA_LOG_LEVEL_ERR) *error = EINA_TRUE;
87 92#ifdef PRINT_EXPECTED_ERROR
88 printf("EXPECTED ERROR %s\n", fnc); 93 printf("EXPECTED ERROR %s\n", fnc);
94#else
95 (void)fnc;
96#endif
89} 97}
90 98
91static void 99static void