cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=72be0842ab514b43124f6fd17066039ccf78cec5
commit 72be0842ab514b43124f6fd17066039ccf78cec5 Author: Mike Blumenkrantz <[email protected]> Date: Wed Oct 9 13:20:43 2019 -0400 tests/eina: use #ifdef guard for block which can only occur inside ifdef this value is set in the corresponding #ifdef block above, so use the same guard here to make code more readable CID 1400948 Reviewed-by: Cedric BAIL <[email protected]> Differential Revision: https://phab.enlightenment.org/D10321 --- src/tests/eina/eina_test_log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/eina/eina_test_log.c b/src/tests/eina/eina_test_log.c index 043cecf8cb..2deefd2f3d 100644 --- a/src/tests/eina/eina_test_log.c +++ b/src/tests/eina/eina_test_log.c @@ -336,7 +336,7 @@ EFL_START_TEST(eina_log_level_indexes) EINA_LOG(d, -1, "Negative index message"); fail_if(ctx.did); } - +#ifdef EINA_LOG_LEVEL_MAXIMUM if (6 <= maxlevel) { // Displayed only if user sets level 6 or higher @@ -345,7 +345,7 @@ EFL_START_TEST(eina_log_level_indexes) EINA_LOG(d, 6, "Higher level debug"); fail_unless(ctx.did); } - +#endif if (5 <= maxlevel) { eina_log_domain_level_set("Levels", 5); --
