forked from enlightenment/efl
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.... :)
This commit is contained in:
parent
c4e96e4e83
commit
db7fefc006
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue