summaryrefslogtreecommitdiff
path: root/src/tests/ecore
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-03-28 17:09:14 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-05-09 10:15:49 -0700
commit524139a16ffe9d278e1d4b5cea2d61ed7a70955d (patch)
tree87c751aedac92e3a15ceeff237fb66526758cfa2 /src/tests/ecore
parentdac867bb24dfe9c839cf734f2dc359f1a997d4a5 (diff)
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
Diffstat (limited to 'src/tests/ecore')
-rw-r--r--src/tests/ecore/efl_app_test_promise.c2
1 files changed, 2 insertions, 0 deletions
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)
1407 Eina_Value *ret = NULL; 1407 Eina_Value *ret = NULL;
1408 Eina_Error err = 0; 1408 Eina_Error err = 0;
1409 1409
1410 ecore_init();
1410 efl_event_callback_add(efl_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, efl_main_test, NULL); 1411 efl_event_callback_add(efl_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, efl_main_test, NULL);
1411 ecore_init_ex(1, argv); 1412 ecore_init_ex(1, argv);
1412 ret = efl_loop_begin(efl_main_loop_get()); 1413 ret = efl_loop_begin(efl_main_loop_get());
@@ -1415,6 +1416,7 @@ EFL_START_TEST(efl_test_future_then)
1415 ck_assert_ptr_eq(eina_value_type_get(ret), EINA_VALUE_TYPE_ERROR); 1416 ck_assert_ptr_eq(eina_value_type_get(ret), EINA_VALUE_TYPE_ERROR);
1416 eina_value_get(ret, &err); 1417 eina_value_get(ret, &err);
1417 ck_assert_int_eq(err, EAGAIN); 1418 ck_assert_int_eq(err, EAGAIN);
1419 ecore_shutdown();
1418} 1420}
1419EFL_END_TEST 1421EFL_END_TEST
1420 1422