cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=524139a16ffe9d278e1d4b5cea2d61ed7a70955d

commit 524139a16ffe9d278e1d4b5cea2d61ed7a70955d
Author: Cedric BAIL <cedric.b...@free.fr>
Date:   Thu Mar 28 17:09:14 2019 -0700

    ecore: make sure that ecore stay initialized during the full test.
    
    efl_app_test_promise.c is slightly special and corrective action have to be
    taken to make sure that ecore_init return the right value when the no fork
    mode of libcheck is used.
    
    Reviewed-by: Mike Blumenkrantz <michael.blumenkra...@gmail.com>
    Reviewed-by: Marcel Hollerbach <m...@marcel-hollerbach.de>
    Differential Revision: https://phab.enlightenment.org/D8566
---
 src/tests/ecore/efl_app_test_promise.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tests/ecore/efl_app_test_promise.c 
b/src/tests/ecore/efl_app_test_promise.c
index 91d3f802d7..1a9019368d 100644
--- a/src/tests/ecore/efl_app_test_promise.c
+++ b/src/tests/ecore/efl_app_test_promise.c
@@ -1407,6 +1407,7 @@ EFL_START_TEST(efl_test_future_then)
    Eina_Value *ret = NULL;
    Eina_Error err = 0;
 
+   ecore_init();
    efl_event_callback_add(efl_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, 
efl_main_test, NULL);
    ecore_init_ex(1, argv);
    ret = efl_loop_begin(efl_main_loop_get());
@@ -1415,6 +1416,7 @@ EFL_START_TEST(efl_test_future_then)
    ck_assert_ptr_eq(eina_value_type_get(ret), EINA_VALUE_TYPE_ERROR);
    eina_value_get(ret, &err);
    ck_assert_int_eq(err, EAGAIN);
+   ecore_shutdown();
 }
 EFL_END_TEST
 

-- 


Reply via email to