eina magic debug test - fix xarnings about double-defining
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 7 Nov 2018 13:23:06 +0000 (13:23 +0000)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 20 Nov 2018 06:56:20 +0000 (15:56 +0900)
only domagic debug test if magic debug is enabled, otherwise have no
test. fixes warning

src/tests/eina/eina_test_magic.c

index 3404afb..11b6312 100644 (file)
@@ -24,9 +24,9 @@
 #include <stdio.h>
 #include <string.h>
 
-#define EINA_MAGIC_DEBUG
-
 #include <Eina.h>
+#ifdef EINA_MAGIC_DEBUG
+
 #include "eina_safety_checks.h"
 
 #include "eina_suite.h"
@@ -190,9 +190,12 @@ EFL_START_TEST(eina_magic_simple)
 
 }
 EFL_END_TEST
+#endif
 
 void eina_test_magic(TCase *tc)
 {
+#ifdef EINA_MAGIC_DEBUG
    tcase_add_test(tc, eina_magic_simple);
+#endif
 }