summaryrefslogtreecommitdiff
path: root/src/tests/eo/function_overrides
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-11 12:24:08 +0000
committerTom Hacohen <tom@stosb.com>2016-03-11 12:29:03 +0000
commitf24210caac8d50940ddef858994571be59179c10 (patch)
treecfc8b264e77abbab9827517d1827f9a4fb4dcd50 /src/tests/eo/function_overrides
parent9fdac37187e35f45570c3808011d0283c658652d (diff)
Revert "Automatic migration to the new eo_add syntax."
This reverts commit 4f949a2757b6332306264d7f126b15ba7bfd37d4.
Diffstat (limited to 'src/tests/eo/function_overrides')
-rw-r--r--src/tests/eo/function_overrides/function_overrides_main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tests/eo/function_overrides/function_overrides_main.c b/src/tests/eo/function_overrides/function_overrides_main.c
index a9148ed4ef..b2aa840897 100644
--- a/src/tests/eo/function_overrides/function_overrides_main.c
+++ b/src/tests/eo/function_overrides/function_overrides_main.c
@@ -18,8 +18,7 @@ main(int argc, char *argv[])
18 eo_init(); 18 eo_init();
19 19
20 Eina_Bool called = EINA_FALSE; 20 Eina_Bool called = EINA_FALSE;
21 Eo *obj = NULL; 21 Eo *obj = eo_add(INHERIT2_CLASS, NULL);
22 eo_add(&obj, INHERIT2_CLASS, NULL);
23 22
24 simple_a_set(obj, 1); 23 simple_a_set(obj, 1);
25 Simple_Public_Data *pd = eo_data_scope_get(obj, SIMPLE_CLASS); 24 Simple_Public_Data *pd = eo_data_scope_get(obj, SIMPLE_CLASS);
@@ -27,7 +26,7 @@ main(int argc, char *argv[])
27 26
28 eo_unref(obj); 27 eo_unref(obj);
29 28
30 eo_add(&obj, INHERIT3_CLASS, NULL); 29 obj = eo_add(INHERIT3_CLASS, NULL);
31 30
32 simple_a_set(obj, 1); 31 simple_a_set(obj, 1);
33 pd = eo_data_scope_get(obj, SIMPLE_CLASS); 32 pd = eo_data_scope_get(obj, SIMPLE_CLASS);
@@ -35,7 +34,7 @@ main(int argc, char *argv[])
35 34
36 eo_unref(obj); 35 eo_unref(obj);
37 36
38 eo_add(&obj, INHERIT2_CLASS, NULL); 37 obj = eo_add(INHERIT2_CLASS, NULL);
39 called = inherit2_print(obj); 38 called = inherit2_print(obj);
40 fail_if(!called); 39 fail_if(!called);
41 called = inherit2_print(obj); 40 called = inherit2_print(obj);
@@ -43,7 +42,7 @@ main(int argc, char *argv[])
43 fail_if(!called); 42 fail_if(!called);
44 eo_unref(obj); 43 eo_unref(obj);
45 44
46 eo_add(&obj, SIMPLE_CLASS, NULL); 45 obj = eo_add(SIMPLE_CLASS, NULL);
47 called = inherit2_print(obj); 46 called = inherit2_print(obj);
48 fail_if(called); 47 fail_if(called);
49 48