tests: fix eio tests accepted/tizen/unified/20200729.165613 submit/tizen/20200728.225405
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Tue, 28 Jul 2020 07:23:11 +0000 (09:23 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 28 Jul 2020 22:24:35 +0000 (07:24 +0900)
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

src/tests/eio/eio_test_manager.c

index a12b9e7a7861ff175517175a180b2624441218d5..3c49cf6271a0fdcb388bd7967a9cbf15ab3804de 100644 (file)
@@ -323,6 +323,8 @@ EFL_START_TEST(efl_io_test_instantiated)
 {
    Efl_Io_Manager *manager;
 
+   efl_object_init();
+
    ck_assert_int_eq(eio_shutdown(), 0);
    ecore_init();
    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)
    manager = efl_provider_find(efl_main_loop_get(), EFL_IO_MANAGER_CLASS);
    fail_if(manager == NULL);
    fail_if(!efl_isa(manager, EFL_IO_MANAGER_CLASS));
+
+   efl_object_shutdown();
 }
 EFL_END_TEST