summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-03-19 14:27:01 -0700
committerCedric Bail <cedric@osg.samsung.com>2018-03-19 14:27:01 -0700
commitfccaeb182e607aa2c1e7896436035e877cc18c8e (patch)
tree9833ad6826e9fb742778b19dfd68661d2adff5c0 /src/tests/eo
parenta5bb8bf3df49988652f0d07b6b36e671977f6c0b (diff)
eo: update tests to also use efl_add_ref correctly.
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/suite/eo_test_call_errors.c8
-rw-r--r--src/tests/eo/suite/eo_test_class_behaviour_errors.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/tests/eo/suite/eo_test_call_errors.c b/src/tests/eo/suite/eo_test_call_errors.c
index 8bc4329ee5..c20f7f7e83 100644
--- a/src/tests/eo/suite/eo_test_call_errors.c
+++ b/src/tests/eo/suite/eo_test_call_errors.c
@@ -17,7 +17,7 @@ START_TEST(eo_pure_virtual_fct_call)
17 efl_object_init(); 17 efl_object_init();
18 eina_log_print_cb_set(eo_test_print_cb, &ctx); 18 eina_log_print_cb_set(eo_test_print_cb, &ctx);
19 19
20 Eo *obj = efl_add(SIMPLE_CLASS, NULL); 20 Eo *obj = efl_add_ref(SIMPLE_CLASS, NULL);
21 fail_if(!obj); 21 fail_if(!obj);
22 22
23 TEST_EO_ERROR("_efl_object_call_resolve", "in %s:%d: you called a pure virtual func '%s' (%d) of class '%s'."); 23 TEST_EO_ERROR("_efl_object_call_resolve", "in %s:%d: you called a pure virtual func '%s' (%d) of class '%s'.");
@@ -35,7 +35,7 @@ START_TEST(eo_api_not_implemented_call)
35 efl_object_init(); 35 efl_object_init();
36 eina_log_print_cb_set(eo_test_print_cb, &ctx); 36 eina_log_print_cb_set(eo_test_print_cb, &ctx);
37 37
38 Eo *obj = efl_add(SIMPLE_CLASS, NULL); 38 Eo *obj = efl_add_ref(SIMPLE_CLASS, NULL);
39 fail_if(!obj); 39 fail_if(!obj);
40 40
41 TEST_EO_ERROR("simple_no_implementation", "Unable to resolve op for api func %p for obj=%p (%s)"); 41 TEST_EO_ERROR("simple_no_implementation", "Unable to resolve op for api func %p for obj=%p (%s)");
@@ -53,7 +53,7 @@ START_TEST(eo_op_not_found_in_super)
53 efl_object_init(); 53 efl_object_init();
54 eina_log_print_cb_set(eo_test_print_cb, &ctx); 54 eina_log_print_cb_set(eo_test_print_cb, &ctx);
55 55
56 Eo *obj = efl_add(SIMPLE_CLASS, NULL); 56 Eo *obj = efl_add_ref(SIMPLE_CLASS, NULL);
57 fail_if(!obj); 57 fail_if(!obj);
58 58
59 TEST_EO_ERROR("_efl_object_call_resolve", "in %s:%d: func '%s' (%d) could not be resolved for class '%s' for super of '%s'."); 59 TEST_EO_ERROR("_efl_object_call_resolve", "in %s:%d: func '%s' (%d) could not be resolved for class '%s' for super of '%s'.");
@@ -114,7 +114,7 @@ START_TEST(eo_fallbackcall_execute)
114{ 114{
115 efl_object_init(); 115 efl_object_init();
116 116
117 Eo *obj = efl_add(SIMPLE_CLASS, NULL); 117 Eo *obj = efl_add_ref(SIMPLE_CLASS, NULL);
118 118
119 fallback_called = EINA_FALSE; 119 fallback_called = EINA_FALSE;
120 simple_error_test(NULL); 120 simple_error_test(NULL);
diff --git a/src/tests/eo/suite/eo_test_class_behaviour_errors.c b/src/tests/eo/suite/eo_test_class_behaviour_errors.c
index 98ee81e462..c39fe0eff4 100644
--- a/src/tests/eo/suite/eo_test_class_behaviour_errors.c
+++ b/src/tests/eo/suite/eo_test_class_behaviour_errors.c
@@ -50,7 +50,7 @@ START_TEST(efl_destructor_unref)
50 klass = efl_class_new(&class_desc, SIMPLE_CLASS, NULL); 50 klass = efl_class_new(&class_desc, SIMPLE_CLASS, NULL);
51 fail_if(!klass); 51 fail_if(!klass);
52 52
53 Eo *obj = efl_add(klass, NULL); 53 Eo *obj = efl_add_ref(klass, NULL);
54 fail_if(!obj); 54 fail_if(!obj);
55 55
56 TEST_EO_ERROR("efl_unref", "Obj:%s@%p. User refcount (%d) < 0. Too many unrefs."); 56 TEST_EO_ERROR("efl_unref", "Obj:%s@%p. User refcount (%d) < 0. Too many unrefs.");
@@ -80,13 +80,13 @@ START_TEST(efl_destructor_double_del)
80 klass = efl_class_new(&class_desc, SIMPLE_CLASS, NULL); 80 klass = efl_class_new(&class_desc, SIMPLE_CLASS, NULL);
81 fail_if(!klass); 81 fail_if(!klass);
82 82
83 Eo *obj = efl_add(klass, NULL); 83 Eo *obj = efl_add_ref(klass, NULL);
84 efl_manual_free_set(obj, EINA_TRUE); 84 efl_manual_free_set(obj, EINA_TRUE);
85 fail_if(!obj); 85 fail_if(!obj);
86 86
87 TEST_EO_ERROR("efl_unref", "Obj:%s@%p. User refcount (%d) < 0. Too many unrefs."); 87 TEST_EO_ERROR("efl_unref", "Obj:%s@%p. User refcount (%d) < 0. Too many unrefs.");
88 efl_del(obj); 88 efl_unref(obj);
89 efl_del(obj); 89 efl_unref(obj);
90 90
91 eina_log_print_cb_set(eina_log_print_cb_stderr, NULL); 91 eina_log_print_cb_set(eina_log_print_cb_stderr, NULL);
92 92