summaryrefslogtreecommitdiff
path: root/src/tests/eo/function_overrides/function_overrides_inherit2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eo/function_overrides/function_overrides_inherit2.c')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_inherit2.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/eo/function_overrides/function_overrides_inherit2.c b/src/tests/eo/function_overrides/function_overrides_inherit2.c
index e250ee3..b4602aa 100644
--- a/src/tests/eo/function_overrides/function_overrides_inherit2.c
+++ b/src/tests/eo/function_overrides/function_overrides_inherit2.c
@@ -15,11 +15,11 @@ static void
15_a_set(Eo *obj, void *class_data EINA_UNUSED, int a) 15_a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
16{ 16{
17 printf("%s %d\n", eo_class_name_get(MY_CLASS), a); 17 printf("%s %d\n", eo_class_name_get(MY_CLASS), a);
18 eo_do(obj, simple_a_print()); 18 simple_a_print(obj);
19 eo_do_super(obj, MY_CLASS, simple_a_set(a + 1)); 19 simple_a_set(eo_super(obj, MY_CLASS), a + 1);
20 20
21 Eina_Bool called = EINA_FALSE; 21 Eina_Bool called = EINA_FALSE;
22 eo_do_super(obj, MY_CLASS, called = simple_a_print()); 22 called = simple_a_print(eo_super(obj, MY_CLASS));
23 fail_if(!called); 23 fail_if(!called);
24} 24}
25 25
@@ -28,7 +28,7 @@ _print(Eo *obj, void *class_data EINA_UNUSED)
28{ 28{
29 Eina_Bool called = EINA_FALSE; 29 Eina_Bool called = EINA_FALSE;
30 printf("Hey\n"); 30 printf("Hey\n");
31 eo_do_super(obj, MY_CLASS, called = inherit2_print()); 31 called = inherit2_print(eo_super(obj, MY_CLASS));
32 fail_if(called); 32 fail_if(called);
33 33
34 return EINA_TRUE; 34 return EINA_TRUE;
@@ -47,10 +47,10 @@ _class_print(Eo_Class *klass, void *data EINA_UNUSED)
47{ 47{
48 Eina_Bool called = EINA_FALSE; 48 Eina_Bool called = EINA_FALSE;
49 printf("Print %s-%s\n", eo_class_name_get(klass), eo_class_name_get(MY_CLASS)); 49 printf("Print %s-%s\n", eo_class_name_get(klass), eo_class_name_get(MY_CLASS));
50 eo_do_super(klass, MY_CLASS, called = simple_class_print()); 50 called = simple_class_print(eo_super(klass, MY_CLASS));
51 fail_if(!called); 51 fail_if(!called);
52 52
53 eo_do_super(klass, MY_CLASS, called = simple_class_print2()); 53 called = simple_class_print2(eo_super(klass, MY_CLASS));
54 fail_if(!called); 54 fail_if(!called);
55 55
56 return EINA_TRUE; 56 return EINA_TRUE;