summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-07-28 09:23:11 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-07-28 10:05:54 +0200
commita25bc7e76972230cd51dde3d0227ef6886612ce4 (patch)
treed8d46d99eb0ccfa535b293a8918ee7a2f7403ac0
parent6e4a3ba9f97d2ff5cca16b438cd8778b8b92d405 (diff)
tests: fix eio tests
there are tests that init & shutdown efl_object in the same test, which is since to switch to const _CLASS_GET dangerously wrong. I checked for more cases but only found cases where no _CLASS_GET macros where used. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D12069
-rw-r--r--src/tests/eio/eio_test_manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/eio/eio_test_manager.c b/src/tests/eio/eio_test_manager.c
index a12b9e7a78..3c49cf6271 100644
--- a/src/tests/eio/eio_test_manager.c
+++ b/src/tests/eio/eio_test_manager.c
@@ -323,6 +323,8 @@ EFL_START_TEST(efl_io_test_instantiated)
323{ 323{
324 Efl_Io_Manager *manager; 324 Efl_Io_Manager *manager;
325 325
326 efl_object_init();
327
326 ck_assert_int_eq(eio_shutdown(), 0); 328 ck_assert_int_eq(eio_shutdown(), 0);
327 ecore_init(); 329 ecore_init();
328 fail_if(efl_provider_find(efl_main_loop_get(), EFL_IO_MANAGER_CLASS) != NULL); 330 fail_if(efl_provider_find(efl_main_loop_get(), EFL_IO_MANAGER_CLASS) != NULL);
@@ -332,6 +334,8 @@ EFL_START_TEST(efl_io_test_instantiated)
332 manager = efl_provider_find(efl_main_loop_get(), EFL_IO_MANAGER_CLASS); 334 manager = efl_provider_find(efl_main_loop_get(), EFL_IO_MANAGER_CLASS);
333 fail_if(manager == NULL); 335 fail_if(manager == NULL);
334 fail_if(!efl_isa(manager, EFL_IO_MANAGER_CLASS)); 336 fail_if(!efl_isa(manager, EFL_IO_MANAGER_CLASS));
337
338 efl_object_shutdown();
335} 339}
336EFL_END_TEST 340EFL_END_TEST
337 341