tests: split elm_test_init into separate test suite (inside elm_suite)

Summary:
check whether init+shutdown work explicitly before proceeding to other
tests
Depends on D5913

Reviewers: stefan_schmidt

Reviewed By: stefan_schmidt

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5914
This commit is contained in:
Mike Blumenkrantz 2018-04-13 12:26:08 +02:00 committed by Stefan Schmidt
parent e066e574cb
commit 00f8541d6d
1 changed files with 12 additions and 2 deletions

View File

@ -7,7 +7,6 @@
#include "../efl_check.h"
static const Efl_Test_Case etc[] = {
{ "Elementary", elm_test_init },
{ "elm_config", elm_test_config },
{ "elm_check", elm_test_check },
{ "elm_colorselector", elm_test_colorselector },
@ -102,6 +101,12 @@ SUITE_SHUTDOWN(elm)
ck_assert_int_eq(ecore_shutdown(), 0);
}
static const Efl_Test_Case etc_init[] = {
{ "init", elm_test_init },
{ NULL, NULL }
};
int
main(int argc, char **argv)
{
@ -119,7 +124,12 @@ main(int argc, char **argv)
putenv("TESTS_GL_DISABLED=1");
failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
"Elementary", etc, SUITE_INIT_FN(elm), SUITE_SHUTDOWN_FN(elm));
"Elementary_Init", etc_init, SUITE_INIT_FN(elm), SUITE_SHUTDOWN_FN(elm));
if (!failed_count)
{
failed_count += _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
"Elementary", etc, SUITE_INIT_FN(elm), SUITE_SHUTDOWN_FN(elm));
}
return (failed_count == 0) ? 0 : 255;
}