stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=00f8541d6d752ae7031111d15494584576120a6d

commit 00f8541d6d752ae7031111d15494584576120a6d
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Apr 13 12:26:08 2018 +0200

    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
---
 src/tests/elementary/elm_suite.c | 14 ++++++++++++--
 1 file 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;
 }

-- 


Reply via email to