summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-10-19 16:14:03 +0100
committerTom Hacohen <tom@stosb.com>2016-10-19 16:32:16 +0100
commitf4eb94a7d8d2b57cc7856596e6489c339482e9dd (patch)
treec11085c6fd55944692c1e2105bdece9dcf83e4c1 /src/tests/eo/suite
parent8c9fa54be4074d4d7a0237194ecfe5c343876ade (diff)
Eo: Remove no longer relevant tests.
Diffstat (limited to 'src/tests/eo/suite')
-rw-r--r--src/tests/eo/suite/eo_test_general.c74
1 files changed, 0 insertions, 74 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index a48192f479..39749241bd 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)
966} 966}
967END_TEST 967END_TEST
968 968
969/* MULTI */
970
971static Eina_Bool
972_a_print(Eo *obj EINA_UNUSED, void *class_data EINA_UNUSED)
973{
974 printf("Hey\n");
975
976 return EINA_TRUE;
977}
978
979static Eina_Bool
980_class_hi_print(Efl_Class *klass EINA_UNUSED, void *class_data EINA_UNUSED)
981{
982 printf("Hi\n");
983
984 return EINA_TRUE;
985}
986
987EFL_FUNC_BODY(multi_a_print, Eina_Bool, EINA_FALSE);
988EFL_FUNC_BODY_CONST(multi_class_hi_print, Eina_Bool, EINA_FALSE);
989
990static Eina_Bool
991_multi_class_initializer(Efl_Class *klass)
992{
993 EFL_OPS_DEFINE(ops,
994 EFL_OBJECT_OP_FUNC(multi_a_print, _a_print),
995 EFL_OBJECT_OP_FUNC(multi_class_hi_print, _class_hi_print),
996 );
997
998 return efl_class_functions_set(klass, &ops, NULL);
999}
1000
1001START_TEST(eo_multiple_do)
1002{
1003 efl_object_init();
1004
1005 /* Usually should be const, not const only for the test... */
1006 static Efl_Class_Description class_desc = {
1007 EO_VERSION,
1008 "Inherit",
1009 EFL_CLASS_TYPE_REGULAR,
1010 0,
1011 _multi_class_initializer,
1012 NULL,
1013 NULL
1014 };
1015
1016 const Efl_Class *klass = efl_class_new(&class_desc, SIMPLE_CLASS, NULL);
1017 fail_if(!klass);
1018
1019 Eo *obj = efl_add(klass, NULL);
1020 fail_if(!obj);
1021
1022 Eina_Bool ca, cb, cc;
1023
1024 ca = cb = cc = EINA_FALSE;
1025 ca = simple_a_print(obj);
1026 cb = multi_a_print(obj);
1027 cc = multi_a_print(obj);
1028 fail_if(!(ca && cb && cc));
1029
1030 ca = cb = cc = EINA_FALSE;
1031 ca = simple_class_hi_print(klass);
1032 cb = multi_class_hi_print(klass);
1033 cc = multi_class_hi_print(klass);
1034 fail_if(!(ca && cb && cc));
1035
1036 efl_unref(obj);
1037
1038 efl_object_shutdown();
1039}
1040END_TEST
1041
1042START_TEST(efl_add_do_and_custom) 969START_TEST(efl_add_do_and_custom)
1043{ 970{
1044 Simple_Public_Data *pd = NULL; 971 Simple_Public_Data *pd = NULL;
@@ -1558,7 +1485,6 @@ void eo_test_general(TCase *tc)
1558 tcase_add_test(tc, efl_weak_reference); 1485 tcase_add_test(tc, efl_weak_reference);
1559 tcase_add_test(tc, eo_generic_data); 1486 tcase_add_test(tc, eo_generic_data);
1560 tcase_add_test(tc, eo_magic_checks); 1487 tcase_add_test(tc, eo_magic_checks);
1561 tcase_add_test(tc, eo_multiple_do);
1562 tcase_add_test(tc, efl_add_do_and_custom); 1488 tcase_add_test(tc, efl_add_do_and_custom);
1563 tcase_add_test(tc, eo_pointers_indirection); 1489 tcase_add_test(tc, eo_pointers_indirection);
1564 tcase_add_test(tc, efl_add_failures); 1490 tcase_add_test(tc, efl_add_failures);