aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eo/suite/eo_test_call_errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eo/suite/eo_test_call_errors.c')
-rw-r--r--src/tests/eo/suite/eo_test_call_errors.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/tests/eo/suite/eo_test_call_errors.c b/src/tests/eo/suite/eo_test_call_errors.c
index 5a03cd83b7..2f4f246be8 100644
--- a/src/tests/eo/suite/eo_test_call_errors.c
+++ b/src/tests/eo/suite/eo_test_call_errors.c
@@ -16,11 +16,12 @@ START_TEST(eo_pure_virtual_fct_call)
eo_init();
eina_log_print_cb_set(eo_test_print_cb, &ctx);
- Eo *obj = eo_add(SIMPLE_CLASS, NULL);
+ Eo *obj;
+ eo_add(obj, SIMPLE_CLASS, NULL);
fail_if(!obj);
TEST_EO_ERROR("_eo_call_resolve", "in %s:%d: you called a pure virtual func '%s' (%d) of class '%s'.");
- eo_do(obj, simple_pure_virtual());
+ eo_do(obj, simple_pure_virtual(obj));
fail_unless(ctx.did);
eo_unref(obj);
@@ -34,11 +35,12 @@ START_TEST(eo_api_not_implemented_call)
eo_init();
eina_log_print_cb_set(eo_test_print_cb, &ctx);
- Eo *obj = eo_add(SIMPLE_CLASS, NULL);
+ Eo *obj;
+ eo_add(obj, SIMPLE_CLASS, NULL);
fail_if(!obj);
TEST_EO_ERROR("_eo_api_op_id_get", "Unable to resolve op for api func %p");
- eo_do(obj, simple_no_implementation());
+ eo_do(obj, simple_no_implementation(obj));
fail_unless(ctx.did);
eo_unref(obj);
@@ -52,11 +54,12 @@ START_TEST(eo_op_not_found_in_super)
eo_init();
eina_log_print_cb_set(eo_test_print_cb, &ctx);
- Eo *obj = eo_add(SIMPLE_CLASS, NULL);
+ Eo *obj;
+ eo_add(obj, SIMPLE_CLASS, NULL);
fail_if(!obj);
TEST_EO_ERROR("_eo_call_resolve", "in %s:%d: func '%s' (%d) could not be resolved for class '%s' for super of '%s'.");
- eo_do_super(obj, SIMPLE_CLASS, simple_a_set(10));
+ eo_super_simple_a_set(SIMPLE_CLASS, obj, 10);
fail_unless(ctx.did);
eo_unref(obj);