summaryrefslogtreecommitdiff
path: root/src/tests/eio
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-06-16 15:14:12 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-06-22 13:19:13 -0700
commitb047bf7f641d297a5613e889e83aa5466ec3a575 (patch)
treed4dd4627a258c8158748133014937d6ec8768b68 /src/tests/eio
parent10aadafcfd01d972a50fb9e1e6b3d3c28924feb0 (diff)
eio: register one Efl_Io_Manager by default on the main loop at init time.
Diffstat (limited to 'src/tests/eio')
-rw-r--r--src/tests/eio/eio_test_manager.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/eio/eio_test_manager.c b/src/tests/eio/eio_test_manager.c
index 80ac58db3b..7bd0015dab 100644
--- a/src/tests/eio/eio_test_manager.c
+++ b/src/tests/eio/eio_test_manager.c
@@ -277,10 +277,31 @@ START_TEST(efl_io_manager_test_open)
277} 277}
278END_TEST 278END_TEST
279 279
280START_TEST(efl_io_instantiated)
281{
282 Efl_Io_Manager *manager;
283
284 ecore_init();
285
286 fail_if(eo_provider_find(ecore_main_loop_get(), EFL_IO_MANAGER_CLASS) != NULL);
287
288 eio_init();
289
290 manager = eo_provider_find(ecore_main_loop_get(), EFL_IO_MANAGER_CLASS);
291 fail_if(manager == NULL);
292 fail_if(!eo_isa(manager, EFL_IO_MANAGER_CLASS));
293
294 eio_shutdown();
295
296 ecore_shutdown();
297}
298END_TEST
299
280void 300void
281eio_test_job(TCase *tc) 301eio_test_job(TCase *tc)
282{ 302{
283 tcase_add_test(tc, efl_io_manager_test_ls_funcs); 303 tcase_add_test(tc, efl_io_manager_test_ls_funcs);
284 tcase_add_test(tc, efl_io_manager_test_file_direct_stat); 304 tcase_add_test(tc, efl_io_manager_test_file_direct_stat);
285 tcase_add_test(tc, efl_io_manager_test_open); 305 tcase_add_test(tc, efl_io_manager_test_open);
306 tcase_add_test(tc, efl_io_instantiated);
286} 307}