forked from enlightenment/efl
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:
parent
57fd66c4b5
commit
0270b20378
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue