aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eo/suite/eo_test_class_behaviour_errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eo/suite/eo_test_class_behaviour_errors.c')
-rw-r--r--src/tests/eo/suite/eo_test_class_behaviour_errors.c8
1 files changed, 5 insertions, 3 deletions
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 8ca7f3d600..9052b90675 100644
--- a/src/tests/eo/suite/eo_test_class_behaviour_errors.c
+++ b/src/tests/eo/suite/eo_test_class_behaviour_errors.c
@@ -15,7 +15,7 @@ const Eo_Class *klass;
static void _destructor_unref(Eo *obj, void *class_data EINA_UNUSED)
{
- eo_do_super(obj, klass, eo_destructor());
+ eo_super_eo_destructor(klass, obj);
/* this triggers an eo stack overflow if not correctly protected */
eo_unref(obj);
@@ -44,7 +44,8 @@ START_TEST(eo_destructor_unref)
klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
fail_if(!klass);
- Eo *obj = eo_add(klass, NULL);
+ Eo *obj;
+ eo_add(obj, klass, NULL);
fail_if(!obj);
TEST_EO_ERROR("_eo_unref", "Object %p deletion already triggered. You wrongly call eo_unref() within a destructor.");
@@ -75,7 +76,8 @@ START_TEST(eo_destructor_double_del)
klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
fail_if(!klass);
- Eo *obj = eo_add(klass, NULL);
+ Eo *obj;
+ eo_add(obj, klass, NULL);
eo_manual_free_set(obj, EINA_TRUE);
fail_if(!obj);