summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-12-15 03:28:48 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-12-15 14:16:53 +0900
commit6d2226385c376a52d3eea4623f47499dfda3a99f (patch)
tree4e9b0e8380db06e59f2589e907307c9f9fa6afa3
parent4d7d5913ddbfbe0b9ac0e56d29dba50332c3dc91 (diff)
tests - ecore promise - assuming a single loop iterate... wrong
this should really be an ecore_main_loop_begin plus a quit condition.
-rw-r--r--src/tests/ecore/ecore_test_promise.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_test_promise.c b/src/tests/ecore/ecore_test_promise.c
index 003dcfa798..ac7cc08d70 100644
--- a/src/tests/ecore/ecore_test_promise.c
+++ b/src/tests/ecore/ecore_test_promise.c
@@ -858,6 +858,9 @@ START_TEST(efl_test_promise_all)
858 858
859 efl_promise_value_set(p1, &value[0], NULL); 859 efl_promise_value_set(p1, &value[0], NULL);
860 860
861 // XXX: assuming a single iteration does it? wrong. need to fix...
862 ecore_main_loop_iterate();
863 ecore_main_loop_iterate();
861 ecore_main_loop_iterate(); 864 ecore_main_loop_iterate();
862 865
863 fail_if(!donep1.then || donep1.cancel || donep1.progress); 866 fail_if(!donep1.then || donep1.cancel || donep1.progress);
@@ -866,6 +869,9 @@ START_TEST(efl_test_promise_all)
866 efl_promise_value_set(p2, &value[1], NULL); 869 efl_promise_value_set(p2, &value[1], NULL);
867 efl_promise_value_set(p3, &value[2], NULL); 870 efl_promise_value_set(p3, &value[2], NULL);
868 871
872 // XXX: assuming a single iteration does it? wrong. need to fix...
873 ecore_main_loop_iterate();
874 ecore_main_loop_iterate();
869 ecore_main_loop_iterate(); 875 ecore_main_loop_iterate();
870 876
871 fail_if(!donea.then || donea.cancel || donea.progress); 877 fail_if(!donea.then || donea.cancel || donea.progress);
@@ -906,6 +912,9 @@ START_TEST(efl_test_promise_all_after_value_set)
906 912
907 fail_if(!efl_future_then(all, _then_all, _cancel, _progress, &donea)); 913 fail_if(!efl_future_then(all, _then_all, _cancel, _progress, &donea));
908 914
915 // XXX: assuming a single iteration does it? wrong. need to fix...
916 ecore_main_loop_iterate();
917 ecore_main_loop_iterate();
909 ecore_main_loop_iterate(); 918 ecore_main_loop_iterate();
910 919
911 fail_if(!donea.then || donea.cancel || donea.progress); 920 fail_if(!donea.then || donea.cancel || donea.progress);