tests: ensure eina/efl_object are initialized for all efl_app tests

Summary:
these aren't tested so don't init/shutdown for every test

ref T6850
Depends on D5903

Reviewers: stefan_schmidt

Subscribers: cedric

Maniphest Tasks: T6850

Differential Revision: https://phab.enlightenment.org/D5904
This commit is contained in:
Mike Blumenkrantz 2018-04-09 13:37:04 +02:00 committed by Stefan Schmidt
parent 5e806ee41f
commit 43c420d3d0
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,8 @@ main(int argc, char **argv)
if (!_efl_test_option_disp(argc, argv, etc))
return 0;
eina_init();
efl_object_init();
#ifdef NEED_RUN_IN_TREE
putenv("EFL_RUN_IN_TREE=1");
#endif
@ -79,5 +81,7 @@ main(int argc, char **argv)
failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
"Efl_App", etc, SUITE_INIT_FN(efl_app), SUITE_SHUTDOWN_FN(efl_app));
efl_object_shutdown();
eina_shutdown();
return (failed_count == 0) ? 0 : 255;
}