summaryrefslogtreecommitdiff
path: root/src/tests/eo/suite
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-09-05 16:57:35 +0100
committerTom Hacohen <tom@stosb.com>2016-09-05 16:59:56 +0100
commit9c779dca90bea36ad43c77597f107dd157a33c46 (patch)
tree7f53cf04ccbb1ca6be0cd42983692f61f44c696f /src/tests/eo/suite
parent5eedad98fe4fe696593147c87ae2278d76e4c9db (diff)
Rename efl_self to efl_added
It has been discussed on the ML (thread: "[RFC] rename efl_self") and IRC, and has been decided we should rename it to this in order to avoid confusion with the already established meaning of self which is very similar to what we were using it for, but didn't have complete overlap. Kudos to Marcel Hollerbach for initiating the discussion and fighting for it until he convinced a significant mass. :) This commit breaks API, and depending on compiler potentially ABI. @feature
Diffstat (limited to 'src/tests/eo/suite')
-rw-r--r--src/tests/eo/suite/eo_test_general.c8
-rw-r--r--src/tests/eo/suite/eo_test_threaded_calls.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index 9d072dc055..95ab0b7d6d 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -1039,24 +1039,24 @@ START_TEST(efl_add_do_and_custom)
1039 Eo *obj = NULL; 1039 Eo *obj = NULL;
1040 efl_object_init(); 1040 efl_object_init();
1041 1041
1042 obj = efl_add(SIMPLE_CLASS, NULL, efl_constructor(efl_self)); 1042 obj = efl_add(SIMPLE_CLASS, NULL, efl_constructor(efl_added));
1043 fail_if(!obj); 1043 fail_if(!obj);
1044 efl_unref(obj); 1044 efl_unref(obj);
1045 1045
1046 obj = efl_add(SIMPLE_CLASS, NULL, simple_a_set(efl_self, 7)); 1046 obj = efl_add(SIMPLE_CLASS, NULL, simple_a_set(efl_added, 7));
1047 fail_if(!obj); 1047 fail_if(!obj);
1048 pd = efl_data_scope_get(obj, SIMPLE_CLASS); 1048 pd = efl_data_scope_get(obj, SIMPLE_CLASS);
1049 fail_if(pd->a != 7); 1049 fail_if(pd->a != 7);
1050 efl_unref(obj); 1050 efl_unref(obj);
1051 1051
1052 obj = efl_add(SIMPLE_CLASS, NULL, efl_constructor(efl_self), simple_a_set(efl_self, 7)); 1052 obj = efl_add(SIMPLE_CLASS, NULL, efl_constructor(efl_added), simple_a_set(efl_added, 7));
1053 fail_if(!obj); 1053 fail_if(!obj);
1054 pd = efl_data_scope_get(obj, SIMPLE_CLASS); 1054 pd = efl_data_scope_get(obj, SIMPLE_CLASS);
1055 fail_if(pd->a != 7); 1055 fail_if(pd->a != 7);
1056 efl_unref(obj); 1056 efl_unref(obj);
1057 1057
1058 Eina_Bool finalized; 1058 Eina_Bool finalized;
1059 obj = efl_add(SIMPLE_CLASS, NULL, finalized = efl_finalized_get(efl_self)); 1059 obj = efl_add(SIMPLE_CLASS, NULL, finalized = efl_finalized_get(efl_added));
1060 fail_if(finalized); 1060 fail_if(finalized);
1061 1061
1062 finalized = efl_finalized_get(obj); 1062 finalized = efl_finalized_get(obj);
diff --git a/src/tests/eo/suite/eo_test_threaded_calls.c b/src/tests/eo/suite/eo_test_threaded_calls.c
index 31b31027fd..e707fc04e1 100644
--- a/src/tests/eo/suite/eo_test_threaded_calls.c
+++ b/src/tests/eo/suite/eo_test_threaded_calls.c
@@ -99,7 +99,7 @@ _thread_job(void *data, Eina_Thread t EINA_UNUSED)
99 fail_if(EINA_LOCK_SUCCEED != eina_spinlock_take(&locks[0])); 99 fail_if(EINA_LOCK_SUCCEED != eina_spinlock_take(&locks[0]));
100 } 100 }
101 101
102 obj = efl_add(THREAD_TEST_CLASS, NULL, thread_test_constructor(efl_self, v)); 102 obj = efl_add(THREAD_TEST_CLASS, NULL, thread_test_constructor(efl_added, v));
103 103
104 thread_test_try_swap_stack(obj); 104 thread_test_try_swap_stack(obj);
105 v = thread_test_v_get(obj); 105 v = thread_test_v_get(obj);