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
This commit is contained in:
Mike Blumenkrantz 2018-04-09 13:37:01 +02:00 committed by Stefan Schmidt
parent fab4c313f4
commit 3547297f80
1 changed files with 11 additions and 1 deletions

View File

@ -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;
}