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
This commit is contained in:
Marcel Hollerbach 2018-10-12 14:59:13 +09:00 committed by Hermet Park
parent 57fd66c4b5
commit 0270b20378
1 changed files with 6 additions and 0 deletions

View File

@ -4,7 +4,11 @@
#include "eo_suite.h"
#include "../../efl_check.h"
#include <eo_private.h>
#include <Eo.h>
#include <Eina.h>
int _eo_log_dom = -1;
static const Efl_Test_Case etc[] = {
{ "Eo init", eo_test_init },
@ -22,10 +26,12 @@ static const Efl_Test_Case etc[] = {
SUITE_INIT(efl_object)
{
ck_assert_int_eq(efl_object_init(), 1);
_eo_log_dom = eina_log_domain_register("eo-log", EINA_COLOR_LIGHTBLUE);
}
SUITE_SHUTDOWN(efl_object)
{
eina_log_domain_unregister(_eo_log_dom);
ck_assert_int_eq(efl_object_shutdown(), 0);
}