summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-10-12 14:59:13 +0900
committerHermet Park <hermetpark@gmail.com>2018-10-12 14:59:14 +0900
commit0270b20378da1682fab4598ed0322cd1fcfdb470 (patch)
tree9962d87b3af4b0874d12cc893cece021dfbbe46f /src/tests/eo
parent57fd66c4b57636d9deb5382a7ce25b6650ffa661 (diff)
eo: add log domain to the testsuite
Summary: when the compiler is instructed that symbols are local by default. Then the testsuite will fail, due to eo_test_general.c including the indirection header, which uses the ERR macro, which needs the _eo_log_dom symbol. Depends on D7145 Reviewers: netstar, zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7147
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/suite/eo_suite.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_suite.c b/src/tests/eo/suite/eo_suite.c
index 06e0d4ec0e..5512ee0b03 100644
--- a/src/tests/eo/suite/eo_suite.c
+++ b/src/tests/eo/suite/eo_suite.c
@@ -4,7 +4,11 @@
4 4
5#include "eo_suite.h" 5#include "eo_suite.h"
6#include "../../efl_check.h" 6#include "../../efl_check.h"
7#include <eo_private.h>
7#include <Eo.h> 8#include <Eo.h>
9#include <Eina.h>
10
11int _eo_log_dom = -1;
8 12
9static const Efl_Test_Case etc[] = { 13static const Efl_Test_Case etc[] = {
10 { "Eo init", eo_test_init }, 14 { "Eo init", eo_test_init },
@@ -22,10 +26,12 @@ static const Efl_Test_Case etc[] = {
22SUITE_INIT(efl_object) 26SUITE_INIT(efl_object)
23{ 27{
24 ck_assert_int_eq(efl_object_init(), 1); 28 ck_assert_int_eq(efl_object_init(), 1);
29 _eo_log_dom = eina_log_domain_register("eo-log", EINA_COLOR_LIGHTBLUE);
25} 30}
26 31
27SUITE_SHUTDOWN(efl_object) 32SUITE_SHUTDOWN(efl_object)
28{ 33{
34 eina_log_domain_unregister(_eo_log_dom);
29 ck_assert_int_eq(efl_object_shutdown(), 0); 35 ck_assert_int_eq(efl_object_shutdown(), 0);
30} 36}
31 37