summaryrefslogtreecommitdiff
path: root/src/tests/edje
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-02-21 18:45:45 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-02-21 18:45:45 +0900
commit8a818ad79d8d728764946f6088beecdb5295366b (patch)
tree8fa82d06a3d0b7f06fae0c37eac592c70c937ab7 /src/tests/edje
parenta77cb9ee419b847f105687655138973d27285269 (diff)
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.
Diffstat (limited to 'src/tests/edje')
-rw-r--r--src/tests/edje/edje_tests_helpers.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/tests/edje/edje_tests_helpers.h b/src/tests/edje/edje_tests_helpers.h
index fa87e816bb..0319c94903 100644
--- a/src/tests/edje/edje_tests_helpers.h
+++ b/src/tests/edje/edje_tests_helpers.h
@@ -7,12 +7,13 @@
7#define EDJE_TEST_INIT_EVAS() _setup_evas() 7#define EDJE_TEST_INIT_EVAS() _setup_evas()
8 8
9#define EDJE_TEST_FREE_EVAS() \ 9#define EDJE_TEST_FREE_EVAS() \
10do \ 10 do \
11{ \ 11 { \
12 evas_free(evas); \ 12 edje_shutdown(); \
13 evas_shutdown(); \ 13 evas_free(evas); \
14} \ 14 evas_shutdown(); \
15while (0) 15 } \
16 while (0)
16 17
17static Evas * 18static Evas *
18_setup_evas() 19_setup_evas()
@@ -21,6 +22,8 @@ _setup_evas()
21 Evas_Engine_Info *einfo; 22 Evas_Engine_Info *einfo;
22 23
23 evas_init(); 24 evas_init();
25 edje_init();
26
24 evas = evas_new(); 27 evas = evas_new();
25 28
26 evas_output_method_set(evas, evas_render_method_lookup("buffer")); 29 evas_output_method_set(evas, evas_render_method_lookup("buffer"));