bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=f57b24b86b213a55564923deaf376a6cf6a77767
commit f57b24b86b213a55564923deaf376a6cf6a77767 Author: Marcel Hollerbach <[email protected]> Date: Thu Feb 6 10:52:08 2020 +0100 efl-check: do not print expected errors that is just a waste of log space. Reviewed-by: Stefan Schmidt <[email protected]> Differential Revision: https://phab.enlightenment.org/D11297 --- src/tests/efl_check.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/tests/efl_check.h b/src/tests/efl_check.h index abb114e005..c66e321c97 100644 --- a/src/tests/efl_check.h +++ b/src/tests/efl_check.h @@ -45,6 +45,11 @@ # endif #endif +/* Uncomment this line to print a warning line to stdout for every expected error received. + Otherwise, expected errors are just silently ignored, greatly reducing the log size. +*/ +//#define PRINT_EXPECTED_ERROR + #define DISABLE_ABORT_ON_CRITICAL_START \ do { \ 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 { Eina_Bool *error = (Eina_Bool*) data; if (level == EINA_LOG_LEVEL_ERR) *error = EINA_TRUE; - +#ifdef PRINT_EXPECTED_ERROR printf("EXPECTED ERROR %s\n", fnc); +#else + (void)fnc; +#endif } static void --
