summaryrefslogtreecommitdiff
path: root/src/tests/eio
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-03-15 14:51:54 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-03-27 15:03:31 -0700
commite162ba9696cb25ad91b44649da00dd942c2a5236 (patch)
tree3476c4f890c019493bb509b3d9a291558ec15fb1 /src/tests/eio
parented3165f928f6b618ca567688e7d9fa8a0828bdf7 (diff)
eio: add test to ensure proper lifecycle of Efl_Io object and futures.
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8372
Diffstat (limited to 'src/tests/eio')
-rw-r--r--src/tests/eio/efl_io_model_test_file.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/eio/efl_io_model_test_file.c b/src/tests/eio/efl_io_model_test_file.c
index f714761c66..e057f6bcc7 100644
--- a/src/tests/eio/efl_io_model_test_file.c
+++ b/src/tests/eio/efl_io_model_test_file.c
@@ -195,8 +195,25 @@ EFL_START_TEST(efl_io_model_test_test_file)
195} 195}
196EFL_END_TEST 196EFL_END_TEST
197 197
198EFL_START_TEST(efl_io_model_test_del)
199{
200 Eo *model;
201 int i;
202
203 DISABLE_ABORT_ON_CRITICAL_START;
204 for (i = 0; i < 10; i++)
205 {
206 model = efl_add(EFL_IO_MODEL_CLASS, efl_main_loop_get(),
207 efl_io_model_path_set(efl_added, EFL_MODEL_TEST_FILENAME_PATH));
208 efl_del(model);
209 }
210 DISABLE_ABORT_ON_CRITICAL_END;
211}
212EFL_END_TEST
213
198void 214void
199efl_io_model_test_file(TCase *tc) 215efl_io_model_test_file(TCase *tc)
200{ 216{
201 tcase_add_test(tc, efl_io_model_test_test_file); 217 tcase_add_test(tc, efl_io_model_test_test_file);
218 tcase_add_test(tc, efl_io_model_test_del);
202} 219}