forked from enlightenment/efl
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:
parent
fab4c313f4
commit
3547297f80
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue