tests/eina: use #ifdef guard for block which can only occur inside ifdef
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 9 Oct 2019 17:20:43 +0000 (13:20 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 11 Nov 2019 02:20:41 +0000 (11:20 +0900)
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

src/tests/eina/eina_test_log.c

index 043cecf..2deefd2 100644 (file)
@@ -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);