diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2018-04-13 12:26:08 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2018-04-13 13:53:39 +0200 |
commit | 00f8541d6d752ae7031111d15494584576120a6d (patch) | |
tree | 911cad42f0998bdba66ee3dd3a762aade3e3b1ef | |
parent | e066e574cba922868218ca93673baa7221f78e8b (diff) | |
download | efl-00f8541d6d752ae7031111d15494584576120a6d.tar.gz |
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
-rw-r--r-- | src/tests/elementary/elm_suite.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/tests/elementary/elm_suite.c b/src/tests/elementary/elm_suite.c index 2cf66ac609..30b7e3ae38 100644 --- a/src/tests/elementary/elm_suite.c +++ b/src/tests/elementary/elm_suite.c @@ -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; } |