aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eo/interface/interface_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eo/interface/interface_main.c')
-rw-r--r--src/tests/eo/interface/interface_main.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/tests/eo/interface/interface_main.c b/src/tests/eo/interface/interface_main.c
index 40936d42e7..28f64c91ca 100644
--- a/src/tests/eo/interface/interface_main.c
+++ b/src/tests/eo/interface/interface_main.c
@@ -16,18 +16,21 @@ main(int argc, char *argv[])
(void) argv;
eo_init();
- Eo *obj = eo_add(SIMPLE_CLASS, NULL);
+ Eo *obj;
+ eo_add(obj, SIMPLE_CLASS, NULL);
- eo_do(obj, simple_a_set(1), simple_b_set(2));
+ eo_do(obj, simple_a_set(obj, 1), simple_b_set(obj, 2));
int a = 0, b = 0, sum = 0;
- eo_do(obj, a = simple_a_get(), b = simple_b_get(), sum = interface_ab_sum_get());
+ eo_do(obj, a = simple_a_get(obj), b = simple_b_get(obj), sum = interface_ab_sum_get(obj));
fail_if(sum != a + b);
sum = 0;
- eo_do(obj, sum = interface_ab_sum_get(), sum = interface_ab_sum_get());
+ eo_do(obj, sum = interface_ab_sum_get(obj), sum = interface_ab_sum_get(obj));
fail_if(sum != a + b);
- eo_do(obj, sum = interface2_ab_sum_get2(), sum = interface2_ab_sum_get2());
+ fprintf(stderr, "%s %s:%d\n", __func__ , __FILE__, __LINE__);
+ eo_do(obj, sum = interface2_ab_sum_get2(obj), sum = interface2_ab_sum_get2(obj));
+ fprintf(stderr, "%s %s:%d\n", __func__ , __FILE__, __LINE__);
fail_if(sum != a + b + 1);
eo_unref(obj);