summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-02-23 08:58:07 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-02-23 08:58:07 -0500
commit12778084d7dd42c5d041c8de24bb08b571fe0541 (patch)
treeba55882a83473cda9623e2696d15065a9ddcae41 /src
parent301b05502cff4125633da25e46d5cf0dccd1565a (diff)
efl: improve Efl.Container_Model test to have proper lifecycle.
Summary: Depends on D7865 Reviewers: felipealmeida, segfaultxavi, SanghyeonLee, zmike, bu5hm4n Reviewed By: segfaultxavi Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7528 Differential Revision: https://phab.enlightenment.org/D7866
Diffstat (limited to 'src')
-rw-r--r--src/tests/efl/efl_test_container_model.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/efl/efl_test_container_model.c b/src/tests/efl/efl_test_container_model.c
index 6bf2f40309..e311ea20aa 100644
--- a/src/tests/efl/efl_test_container_model.c
+++ b/src/tests/efl/efl_test_container_model.c
@@ -89,7 +89,7 @@ EFL_START_TEST(efl_test_container_model_values)
89 cmp_str[i] = strdup(base_str[i]); 89 cmp_str[i] = strdup(base_str[i]);
90 } 90 }
91 91
92 model = efl_add_ref(EFL_CONTAINER_MODEL_CLASS, NULL); 92 model = efl_add(EFL_CONTAINER_MODEL_CLASS, efl_main_loop_get());
93 93
94 efl_container_model_child_property_add(model, "test_p_int", EINA_VALUE_TYPE_INT, 94 efl_container_model_child_property_add(model, "test_p_int", EINA_VALUE_TYPE_INT,
95 eina_carray_iterator_new((void**)cmp_int)); 95 eina_carray_iterator_new((void**)cmp_int));
@@ -110,6 +110,8 @@ EFL_START_TEST(efl_test_container_model_values)
110 eina_future_then(future, _children_slice_future_then, NULL, NULL); 110 eina_future_then(future, _children_slice_future_then, NULL, NULL);
111 111
112 ecore_main_loop_begin(); 112 ecore_main_loop_begin();
113
114 efl_del(model);
113} 115}
114EFL_END_TEST 116EFL_END_TEST
115 117