summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_suite.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-04-13 12:26:08 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-13 13:53:39 +0200
commit00f8541d6d752ae7031111d15494584576120a6d (patch)
tree911cad42f0998bdba66ee3dd3a762aade3e3b1ef /src/tests/elementary/elm_suite.c
parente066e574cba922868218ca93673baa7221f78e8b (diff)
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
Diffstat (limited to 'src/tests/elementary/elm_suite.c')
-rw-r--r--src/tests/elementary/elm_suite.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/tests/elementary/elm_suite.c b/src/tests/elementary/elm_suite.c
index 2cf66ac..30b7e3a 100644
--- a/src/tests/elementary/elm_suite.c
+++ b/src/tests/elementary/elm_suite.c
@@ -7,7 +7,6 @@
7#include "../efl_check.h" 7#include "../efl_check.h"
8 8
9static const Efl_Test_Case etc[] = { 9static const Efl_Test_Case etc[] = {
10 { "Elementary", elm_test_init },
11 { "elm_config", elm_test_config }, 10 { "elm_config", elm_test_config },
12 { "elm_check", elm_test_check }, 11 { "elm_check", elm_test_check },
13 { "elm_colorselector", elm_test_colorselector }, 12 { "elm_colorselector", elm_test_colorselector },
@@ -102,6 +101,12 @@ SUITE_SHUTDOWN(elm)
102 ck_assert_int_eq(ecore_shutdown(), 0); 101 ck_assert_int_eq(ecore_shutdown(), 0);
103} 102}
104 103
104
105static const Efl_Test_Case etc_init[] = {
106 { "init", elm_test_init },
107 { NULL, NULL }
108};
109
105int 110int
106main(int argc, char **argv) 111main(int argc, char **argv)
107{ 112{
@@ -119,7 +124,12 @@ main(int argc, char **argv)
119 putenv("TESTS_GL_DISABLED=1"); 124 putenv("TESTS_GL_DISABLED=1");
120 125
121 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1, 126 failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
122 "Elementary", etc, SUITE_INIT_FN(elm), SUITE_SHUTDOWN_FN(elm)); 127 "Elementary_Init", etc_init, SUITE_INIT_FN(elm), SUITE_SHUTDOWN_FN(elm));
128 if (!failed_count)
129 {
130 failed_count += _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
131 "Elementary", etc, SUITE_INIT_FN(elm), SUITE_SHUTDOWN_FN(elm));
132 }
123 133
124 return (failed_count == 0) ? 0 : 255; 134 return (failed_count == 0) ? 0 : 255;
125} 135}