summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-10-09 13:20:43 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-11-26 11:43:06 -0500
commit7923df60031193282edcb967b406c648f1a6b543 (patch)
treee98b4ec08cb9f0fe0666ffbcab07352b51df7205
parent5716de7ec3810563341e747357afafefb7bbbd88 (diff)
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 <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10321
-rw-r--r--src/tests/eina/eina_test_log.c4
1 files 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)
336 EINA_LOG(d, -1, "Negative index message"); 336 EINA_LOG(d, -1, "Negative index message");
337 fail_if(ctx.did); 337 fail_if(ctx.did);
338 } 338 }
339 339#ifdef EINA_LOG_LEVEL_MAXIMUM
340 if (6 <= maxlevel) 340 if (6 <= maxlevel)
341 { 341 {
342 // Displayed only if user sets level 6 or higher 342 // Displayed only if user sets level 6 or higher
@@ -345,7 +345,7 @@ EFL_START_TEST(eina_log_level_indexes)
345 EINA_LOG(d, 6, "Higher level debug"); 345 EINA_LOG(d, 6, "Higher level debug");
346 fail_unless(ctx.did); 346 fail_unless(ctx.did);
347 } 347 }
348 348#endif
349 if (5 <= maxlevel) 349 if (5 <= maxlevel)
350 { 350 {
351 eina_log_domain_level_set("Levels", 5); 351 eina_log_domain_level_set("Levels", 5);