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
This commit is contained in:
Yeongjong Lee 2019-03-15 14:51:54 -07:00 committed by Cedric BAIL
parent ed3165f928
commit e162ba9696
1 changed files with 17 additions and 0 deletions

View File

@ -195,8 +195,25 @@ EFL_START_TEST(efl_io_model_test_test_file)
}
EFL_END_TEST
EFL_START_TEST(efl_io_model_test_del)
{
Eo *model;
int i;
DISABLE_ABORT_ON_CRITICAL_START;
for (i = 0; i < 10; i++)
{
model = efl_add(EFL_IO_MODEL_CLASS, efl_main_loop_get(),
efl_io_model_path_set(efl_added, EFL_MODEL_TEST_FILENAME_PATH));
efl_del(model);
}
DISABLE_ABORT_ON_CRITICAL_END;
}
EFL_END_TEST
void
efl_io_model_test_file(TCase *tc)
{
tcase_add_test(tc, efl_io_model_test_test_file);
tcase_add_test(tc, efl_io_model_test_del);
}