summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-12 15:05:24 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-01 10:39:01 -0700
commitd9ce6fac155617ef02dd14f5563c31ea10847bfc (patch)
treee5ad7c34497aaa120e411e3e6a232c7444b8ae96 /src
parent8e107c991c50dd38cfbbf9b04221cc1b689e3a43 (diff)
eldbus: disable efl.model.child_del test as the behavior for eldbus.model.object is not defined yet.
Diffstat (limited to '')
-rw-r--r--src/tests/eldbus/eldbus_test_eldbus_model_object.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/tests/eldbus/eldbus_test_eldbus_model_object.c b/src/tests/eldbus/eldbus_test_eldbus_model_object.c
index 3c5a2cbee2..bece99c64b 100644
--- a/src/tests/eldbus/eldbus_test_eldbus_model_object.c
+++ b/src/tests/eldbus/eldbus_test_eldbus_model_object.c
@@ -153,12 +153,7 @@ EFL_START_TEST(child_add)
153} 153}
154EFL_END_TEST 154EFL_END_TEST
155 155
156static void 156#if 0
157_children_wait(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED)
158{
159 ecore_main_loop_quit();
160}
161
162static Eina_Value 157static Eina_Value
163_one_child(void *data, const Eina_Value v, const Eina_Future *dead_future EINA_UNUSED) 158_one_child(void *data, const Eina_Value v, const Eina_Future *dead_future EINA_UNUSED)
164{ 159{
@@ -173,6 +168,7 @@ _one_child(void *data, const Eina_Value v, const Eina_Future *dead_future EINA_U
173 return v; 168 return v;
174} 169}
175 170
171// FIXME: I don't know what the expected behavior for destroying a child of eldbus model object should be
176EFL_START_TEST(child_del) 172EFL_START_TEST(child_del)
177{ 173{
178 Eina_Future *future; 174 Eina_Future *future;
@@ -180,19 +176,18 @@ EFL_START_TEST(child_del)
180 unsigned int expected_children_count = 0; 176 unsigned int expected_children_count = 0;
181 unsigned int actual_children_count = 0; 177 unsigned int actual_children_count = 0;
182 178
183 efl_event_callback_add(object, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, _children_wait, NULL); 179 efl_event_callback_add(object, EFL_MODEL_EVENT_CHILDREN_COUNT_CHANGED, _count_changed, NULL);
184 expected_children_count = efl_model_children_count_get(object); 180 efl_model_children_count_get(object);
181
182 ecore_main_loop_begin();
185 183
186 if (!expected_children_count) 184 expected_children_count = efl_model_children_count_get(object);
187 {
188 ecore_main_loop_begin();
189 expected_children_count = efl_model_children_count_get(object);
190 }
191 185
192 fail_if(expected_children_count == 0); 186 fail_if(expected_children_count == 0);
193 187
194 future = efl_model_children_slice_get(object, 0, 1); 188 future = efl_model_children_slice_get(object, 0, 1);
195 eina_future_then(future, _one_child, &child); 189 eina_future_then(future, _one_child, &child);
190
196 ecore_main_loop_begin(); 191 ecore_main_loop_begin();
197 192
198 fail_if(!child); 193 fail_if(!child);
@@ -202,6 +197,7 @@ EFL_START_TEST(child_del)
202 ck_assert_int_le(expected_children_count, actual_children_count); 197 ck_assert_int_le(expected_children_count, actual_children_count);
203} 198}
204EFL_END_TEST 199EFL_END_TEST
200#endif
205 201
206void eldbus_test_eldbus_model_object(TCase *tc) 202void eldbus_test_eldbus_model_object(TCase *tc)
207{ 203{
@@ -212,5 +208,5 @@ void eldbus_test_eldbus_model_object(TCase *tc)
212 tcase_add_test(tc, children_count); 208 tcase_add_test(tc, children_count);
213 tcase_add_test(tc, children_slice_get); 209 tcase_add_test(tc, children_slice_get);
214 tcase_add_test(tc, child_add); 210 tcase_add_test(tc, child_add);
215 tcase_add_test(tc, child_del); 211 /* tcase_add_test(tc, child_del); */
216} 212}