From b917eb4c2570c516987cebc5c5d69e7d47608cbc Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 3 May 2016 09:36:37 +0200 Subject: [PATCH] tests: eio: use the correct eina_promise_* functions When these changes got it with 0c76f82a31b1ad06a4da4c12f1a02139e0d0c6fa they used the non existing symbols ecore_promise_value_get and ecore_promise_then (most likely due to an unfinished refactoring) Make sure we actually use the correct eina_promise_ symbols and add NULL for the error callback which is now needed. --- src/tests/eio/eio_model_test_monitor_add.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/eio/eio_model_test_monitor_add.c b/src/tests/eio/eio_model_test_monitor_add.c index a18b47e670..4df6539a44 100644 --- a/src/tests/eio/eio_model_test_monitor_add.c +++ b/src/tests/eio/eio_model_test_monitor_add.c @@ -32,7 +32,7 @@ _children_removed_cb(void *data EINA_UNUSED, const Eo_Event* event) Eina_Promise* promise; efl_model_property_get(evt->child, "path", &promise); - Eina_Value const* value = ecore_promise_value_get(promise); + Eina_Value const* value = eina_promise_value_get(promise); char* filename = eina_value_to_string(value); if(temp_filename && !strcmp(filename, temp_filename) == 0) @@ -50,7 +50,7 @@ _children_added_cb(void *data EINA_UNUSED, const Eo_Event* event) Eina_Promise* promise; efl_model_property_get(evt->child, "path", &promise); - Eina_Value const* value = ecore_promise_value_get(promise); + Eina_Value const* value = eina_promise_value_get(promise); char* filename = eina_value_to_string(value); if(temp_filename && !strcmp(temp_filename, filename)) @@ -96,7 +96,7 @@ START_TEST(eio_model_test_test_monitor_add) Eina_Promise* promise; efl_model_children_slice_get(filemodel, 0, 0, &promise); - ecore_promise_then(promise, &_create_file, NULL); + eina_promise_then(promise, &_create_file, NULL, NULL); ecore_main_loop_begin();