diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2018-04-09 13:37:01 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2018-04-10 11:28:01 +0200 |
commit | 3547297f8099b09522b153bdf13ad257658589cd (patch) | |
tree | 080fb3c78fca59e95063850cf4525a1df917d2b2 | |
parent | fab4c313f45e6f4cc77d584df1842c633300f059 (diff) | |
download | efl-3547297f8099b09522b153bdf13ad257658589cd.tar.gz |
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.c | 12 |
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[] = { { NULL, NULL } }; +SUITE_INIT(efl_app) +{ + ck_assert_int_eq(ecore_init(), 1); +} + +SUITE_SHUTDOWN(efl_app) +{ + ck_assert_int_eq(ecore_shutdown(), 0); +} + int main(int argc, char **argv) { @@ -65,7 +75,7 @@ main(int argc, char **argv) #endif failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1, - "Efl_App", etc, NULL, NULL); + "Efl_App", etc, SUITE_INIT_FN(efl_app), SUITE_SHUTDOWN_FN(efl_app)); return (failed_count == 0) ? 0 : 255; } |