summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-04-09 13:37:01 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-10 11:28:01 +0200
commit3547297f8099b09522b153bdf13ad257658589cd (patch)
tree080fb3c78fca59e95063850cf4525a1df917d2b2
parentfab4c313f45e6f4cc77d584df1842c633300f059 (diff)
tests: add fixtures for efl_app tests
Summary: ref T6811 Depends on D5896 Reviewers: stefan_schmidt Subscribers: cedric Maniphest Tasks: T6811 Differential Revision: https://phab.enlightenment.org/D5897
-rw-r--r--src/tests/ecore/efl_app_suite.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/tests/ecore/efl_app_suite.c b/src/tests/ecore/efl_app_suite.c
index 25854ff528..f79e5f8b80 100644
--- a/src/tests/ecore/efl_app_suite.c
+++ b/src/tests/ecore/efl_app_suite.c
@@ -52,6 +52,16 @@ static const Efl_Test_Case etc[] = {
52 { NULL, NULL } 52 { NULL, NULL }
53}; 53};
54 54
55SUITE_INIT(efl_app)
56{
57 ck_assert_int_eq(ecore_init(), 1);
58}
59
60SUITE_SHUTDOWN(efl_app)
61{
62 ck_assert_int_eq(ecore_shutdown(), 0);
63}
64
55int 65int
56main(int argc, char **argv) 66main(int argc, char **argv)
57{ 67{
@@ -65,7 +75,7 @@ main(int argc, char **argv)
65#endif 75#endif
66 76
67 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1, 77 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
68 "Efl_App", etc, NULL, NULL); 78 "Efl_App", etc, SUITE_INIT_FN(efl_app), SUITE_SHUTDOWN_FN(efl_app));
69 79
70 return (failed_count == 0) ? 0 : 255; 80 return (failed_count == 0) ? 0 : 255;
71} 81}