edje: let's fix the edje test to init/shutdown edje correctly.

We have so much wonderfull tool, like git and make lcov-check. Sadly
we are lacking a tool to check their usage ! PEBKAC is still an issue.
This commit is contained in:
Cedric BAIL 2013-02-21 18:45:45 +09:00
parent a77cb9ee41
commit 8a818ad79d
1 changed files with 9 additions and 6 deletions

View File

@ -7,12 +7,13 @@
#define EDJE_TEST_INIT_EVAS() _setup_evas()
#define EDJE_TEST_FREE_EVAS() \
do \
{ \
evas_free(evas); \
evas_shutdown(); \
} \
while (0)
do \
{ \
edje_shutdown(); \
evas_free(evas); \
evas_shutdown(); \
} \
while (0)
static Evas *
_setup_evas()
@ -21,6 +22,8 @@ _setup_evas()
Evas_Engine_Info *einfo;
evas_init();
edje_init();
evas = evas_new();
evas_output_method_set(evas, evas_render_method_lookup("buffer"));