raster pushed a commit to branch master.

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

commit db7fefc006520c4f5e17b928841e01068e5432c2
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Nov 21 21:35:39 2017 +0900

    efl model tests - fix mainloop iterate to not assume a single iter
    
    it may have to loop multiple times as there isnt a guarantee on WHEN
    the result comes back.... :)
---
 src/tests/efl/efl_test_model_composite.c | 4 ++--
 src/tests/efl/efl_test_model_container.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tests/efl/efl_test_model_composite.c 
b/src/tests/efl/efl_test_model_composite.c
index a38e776746..175adee339 100644
--- a/src/tests/efl/efl_test_model_composite.c
+++ b/src/tests/efl/efl_test_model_composite.c
@@ -204,7 +204,7 @@ START_TEST(efl_test_model_composite_boolean)
    future = efl_model_children_slice_get(model, 0, 0);
    efl_future_then(future, _children_slice_get_then, _future_error_then, NULL, 
tdata);
 
-   ecore_main_loop_iterate();
+   while (!tdata->success_flag) ecore_main_loop_iterate();
 
    ck_assert(tdata->success_flag);
 
@@ -246,7 +246,7 @@ START_TEST(efl_test_model_composite_selection)
    future = efl_model_children_slice_get(model, 0, 0);
    efl_future_then(future, _selection_children_slice_get_then, 
_future_error_then, NULL, tdata);
 
-   ecore_main_loop_iterate();
+   while (!tdata->success_flag) ecore_main_loop_iterate();
 
    ck_assert(tdata->success_flag);
 
diff --git a/src/tests/efl/efl_test_model_container.c 
b/src/tests/efl/efl_test_model_container.c
index 5710ef2337..bfd1984d4d 100644
--- a/src/tests/efl/efl_test_model_container.c
+++ b/src/tests/efl/efl_test_model_container.c
@@ -154,7 +154,7 @@ START_TEST(efl_test_model_container_values)
 
    efl_future_then(future, _children_slice_future_then, _future_error_then, 
NULL, &test_data);
 
-   ecore_main_loop_iterate();
+   while ((!test_data.pass_flag) && (!test_data.fail_flag)) 
ecore_main_loop_iterate();
 
    ck_assert(!!test_data.pass_flag);
    ck_assert(!test_data.fail_flag);

-- 


Reply via email to