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.blumenkrantz@gmail.com>
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8566
This commit is contained in:
Cedric BAIL 2019-03-28 17:09:14 -07:00
parent dac867bb24
commit 524139a16f
1 changed files with 2 additions and 0 deletions

View File

@ -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