cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fedc8939cc6f4bf0de7ea5188717b6050475f69a

commit fedc8939cc6f4bf0de7ea5188717b6050475f69a
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Tue Apr 12 10:40:58 2016 -0700

    eldbus: make tests suite more robust to initialization count change.
---
 src/tests/eldbus/eldbus_test_eldbus_model.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/tests/eldbus/eldbus_test_eldbus_model.c 
b/src/tests/eldbus/eldbus_test_eldbus_model.c
index 86ba35a..3a27778 100644
--- a/src/tests/eldbus/eldbus_test_eldbus_model.c
+++ b/src/tests/eldbus/eldbus_test_eldbus_model.c
@@ -87,19 +87,21 @@ efl_model_load_and_wait_for_load_status(Eo *obj, 
Efl_Model_Load_Status expected_
    efl_model_wait_for_load_status(obj, expected_status);
 }
 
+static int expected_ret = 0;
+
 void
 check_init(void)
 {
    ecore_init();
-   int ret = eldbus_init();
-   ck_assert_int_ge(ret, 1);
+   expected_ret = eldbus_init();
+   ck_assert_int_ge(expected_ret, 1);
 }
 
 void
 check_shutdown(void)
 {
    int ret = eldbus_shutdown();
-   ck_assert_int_eq(ret, 0);
+   ck_assert_int_eq(ret, expected_ret - 1);
    ecore_shutdown();
 }
 

-- 


Reply via email to