From f4eb94a7d8d2b57cc7856596e6489c339482e9dd Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 19 Oct 2016 16:14:03 +0100 Subject: [PATCH] Eo: Remove no longer relevant tests. --- src/tests/eo/suite/eo_test_general.c | 74 ------------------------------------ 1 file changed, 74 deletions(-) diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c index a48192f..3974924 100644 --- a/src/tests/eo/suite/eo_test_general.c +++ b/src/tests/eo/suite/eo_test_general.c @@ -966,79 +966,6 @@ START_TEST(eo_magic_checks) } END_TEST -/* MULTI */ - -static Eina_Bool -_a_print(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED) -{ - printf("Hey\n"); - - return EINA_TRUE; -} - -static Eina_Bool -_class_hi_print(Efl_Class *klass EINA_UNUSED, void *class_data EINA_UNUSED) -{ - printf("Hi\n"); - - return EINA_TRUE; -} - -EFL_FUNC_BODY(multi_a_print, Eina_Bool, EINA_FALSE); -EFL_FUNC_BODY_CONST(multi_class_hi_print, Eina_Bool, EINA_FALSE); - -static Eina_Bool -_multi_class_initializer(Efl_Class *klass) -{ - EFL_OPS_DEFINE(ops, - EFL_OBJECT_OP_FUNC(multi_a_print, _a_print), - EFL_OBJECT_OP_FUNC(multi_class_hi_print, _class_hi_print), - ); - - return efl_class_functions_set(klass, &ops, NULL); -} - -START_TEST(eo_multiple_do) -{ - efl_object_init(); - - /* Usually should be const, not const only for the test... */ - static Efl_Class_Description class_desc = { - EO_VERSION, - "Inherit", - EFL_CLASS_TYPE_REGULAR, - 0, - _multi_class_initializer, - NULL, - NULL - }; - - const Efl_Class *klass = efl_class_new(&class_desc, SIMPLE_CLASS, NULL); - fail_if(!klass); - - Eo *obj = efl_add(klass, NULL); - fail_if(!obj); - - Eina_Bool ca, cb, cc; - - ca = cb = cc = EINA_FALSE; - ca = simple_a_print(obj); - cb = multi_a_print(obj); - cc = multi_a_print(obj); - fail_if(!(ca && cb && cc)); - - ca = cb = cc = EINA_FALSE; - ca = simple_class_hi_print(klass); - cb = multi_class_hi_print(klass); - cc = multi_class_hi_print(klass); - fail_if(!(ca && cb && cc)); - - efl_unref(obj); - - efl_object_shutdown(); -} -END_TEST - START_TEST(efl_add_do_and_custom) { Simple_Public_Data *pd = NULL; @@ -1558,7 +1485,6 @@ void eo_test_general(TCase *tc) tcase_add_test(tc, efl_weak_reference); tcase_add_test(tc, eo_generic_data); tcase_add_test(tc, eo_magic_checks); - tcase_add_test(tc, eo_multiple_do); tcase_add_test(tc, efl_add_do_and_custom); tcase_add_test(tc, eo_pointers_indirection); tcase_add_test(tc, efl_add_failures); -- 2.7.4