summaryrefslogtreecommitdiff
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, 9 insertions, 4 deletions
diff --git a/src/tests/eo/interface/interface_main.c b/src/tests/eo/interface/interface_main.c
index 40936d4..a85f030 100644
--- a/src/tests/eo/interface/interface_main.c
+++ b/src/tests/eo/interface/interface_main.c
@@ -18,16 +18,21 @@ main(int argc, char *argv[])
18 18
19 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 19 Eo *obj = eo_add(SIMPLE_CLASS, NULL);
20 20
21 eo_do(obj, simple_a_set(1), simple_b_set(2)); 21 simple_a_set(obj, 1);
22 simple_b_set(obj, 2);
22 23
23 int a = 0, b = 0, sum = 0; 24 int a = 0, b = 0, sum = 0;
24 eo_do(obj, a = simple_a_get(), b = simple_b_get(), sum = interface_ab_sum_get()); 25 a = simple_a_get(obj);
26 b = simple_b_get(obj);
27 sum = interface_ab_sum_get(obj);
25 fail_if(sum != a + b); 28 fail_if(sum != a + b);
26 29
27 sum = 0; 30 sum = 0;
28 eo_do(obj, sum = interface_ab_sum_get(), sum = interface_ab_sum_get()); 31 sum = interface_ab_sum_get(obj);
32 sum = interface_ab_sum_get(obj);
29 fail_if(sum != a + b); 33 fail_if(sum != a + b);
30 eo_do(obj, sum = interface2_ab_sum_get2(), sum = interface2_ab_sum_get2()); 34 sum = interface2_ab_sum_get2(obj);
35 sum = interface2_ab_sum_get2(obj);
31 fail_if(sum != a + b + 1); 36 fail_if(sum != a + b + 1);
32 37
33 eo_unref(obj); 38 eo_unref(obj);