summaryrefslogtreecommitdiff
path: root/src/tests/eo/function_overrides/function_overrides_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eo/function_overrides/function_overrides_main.c')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_main.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/tests/eo/function_overrides/function_overrides_main.c b/src/tests/eo/function_overrides/function_overrides_main.c
index 920595c..b2aa840 100644
--- a/src/tests/eo/function_overrides/function_overrides_main.c
+++ b/src/tests/eo/function_overrides/function_overrides_main.c
@@ -20,7 +20,7 @@ main(int argc, char *argv[])
20 Eina_Bool called = EINA_FALSE; 20 Eina_Bool called = EINA_FALSE;
21 Eo *obj = eo_add(INHERIT2_CLASS, NULL); 21 Eo *obj = eo_add(INHERIT2_CLASS, NULL);
22 22
23 eo_do(obj, simple_a_set(1)); 23 simple_a_set(obj, 1);
24 Simple_Public_Data *pd = eo_data_scope_get(obj, SIMPLE_CLASS); 24 Simple_Public_Data *pd = eo_data_scope_get(obj, SIMPLE_CLASS);
25 fail_if(pd->a != 2); 25 fail_if(pd->a != 2);
26 26
@@ -28,47 +28,48 @@ main(int argc, char *argv[])
28 28
29 obj = eo_add(INHERIT3_CLASS, NULL); 29 obj = eo_add(INHERIT3_CLASS, NULL);
30 30
31 eo_do(obj, simple_a_set(1)); 31 simple_a_set(obj, 1);
32 pd = eo_data_scope_get(obj, SIMPLE_CLASS); 32 pd = eo_data_scope_get(obj, SIMPLE_CLASS);
33 fail_if(pd->a != 3); 33 fail_if(pd->a != 3);
34 34
35 eo_unref(obj); 35 eo_unref(obj);
36 36
37 obj = eo_add(INHERIT2_CLASS, NULL); 37 obj = eo_add(INHERIT2_CLASS, NULL);
38 eo_do(obj, called = inherit2_print()); 38 called = inherit2_print(obj);
39 fail_if(!called); 39 fail_if(!called);
40 eo_do(obj, called = inherit2_print(), called = inherit2_print()); 40 called = inherit2_print(obj);
41 called = inherit2_print(obj);
41 fail_if(!called); 42 fail_if(!called);
42 eo_unref(obj); 43 eo_unref(obj);
43 44
44 obj = eo_add(SIMPLE_CLASS, NULL); 45 obj = eo_add(SIMPLE_CLASS, NULL);
45 eo_do(obj, called = inherit2_print()); 46 called = inherit2_print(obj);
46 fail_if(called); 47 fail_if(called);
47 48
48#ifdef EO_DEBUG 49#ifdef EO_DEBUG
49 eo_do(obj, called = simple_class_print()); 50 called = simple_class_print(obj);
50 fail_if(called); 51 fail_if(called);
51#endif 52#endif
52 53
53 eo_do(SIMPLE_CLASS, called = simple_class_print()); 54 called = simple_class_print(SIMPLE_CLASS);
54 fail_if(!called); 55 fail_if(!called);
55 56
56 eo_do(INHERIT_CLASS, called = simple_class_print()); 57 called = simple_class_print(INHERIT_CLASS);
57 fail_if(!called); 58 fail_if(!called);
58 59
59 eo_do(INHERIT2_CLASS, called = simple_class_print()); 60 called = simple_class_print(INHERIT2_CLASS);
60 fail_if(!called); 61 fail_if(!called);
61 62
62 eo_do(INHERIT3_CLASS, called = simple_class_print()); 63 called = simple_class_print(INHERIT3_CLASS);
63 fail_if(!called); 64 fail_if(!called);
64 65
65#ifdef EO_DEBUG 66#ifdef EO_DEBUG
66 eo_do(SIMPLE_CLASS, called = simple_a_print()); 67 called = simple_a_print(SIMPLE_CLASS);
67 fail_if(called); 68 fail_if(called);
68#endif 69#endif
69 70
70 eo_do_super(obj, SIMPLE_CLASS, eo_constructor()); 71 eo_constructor(eo_super(obj, SIMPLE_CLASS));
71 eo_do_super(obj, SIMPLE_CLASS, eo_destructor()); 72 eo_destructor(eo_super(obj, SIMPLE_CLASS));
72 73
73 eo_unref(obj); 74 eo_unref(obj);
74 75