summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-04-12 17:22:28 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-04-12 17:22:28 +0200
commit5065356ae69b8d9db79fcffb1eab1b183bf69399 (patch)
tree5c203d68f584219bd8d59f728474a39f4d3ada42
parent8712f03f570e5cef0e4d1bcc137a7f875cb6313d (diff)
tests/eldbus: add now needed calls to ecore_init/shutdown
Since commit 53c66c98c2ae13a8c96b4ae1f9d735cda179e89d eldbus o longer calls ecore_init() wo we need to handle this. Fixes the edlbus tests cases.
-rw-r--r--src/tests/eldbus/eldbus_test_eldbus_init.c3
-rw-r--r--src/tests/eldbus/eldbus_test_eldbus_model.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/eldbus/eldbus_test_eldbus_init.c b/src/tests/eldbus/eldbus_test_eldbus_init.c
index f530d4c3ba..65f229e732 100644
--- a/src/tests/eldbus/eldbus_test_eldbus_init.c
+++ b/src/tests/eldbus/eldbus_test_eldbus_init.c
@@ -22,10 +22,13 @@ START_TEST(eldbus_test_eldbus)
22{ 22{
23 int ret; 23 int ret;
24 24
25 ecore_init();
25 ret = eldbus_init(); 26 ret = eldbus_init();
26 fail_if(ret < 1); 27 fail_if(ret < 1);
27 28
28 ret = eldbus_shutdown(); 29 ret = eldbus_shutdown();
30
31 ecore_shutdown();
29} 32}
30END_TEST 33END_TEST
31 34
diff --git a/src/tests/eldbus/eldbus_test_eldbus_model.c b/src/tests/eldbus/eldbus_test_eldbus_model.c
index 8dc5e15448..86ba35a5f3 100644
--- a/src/tests/eldbus/eldbus_test_eldbus_model.c
+++ b/src/tests/eldbus/eldbus_test_eldbus_model.c
@@ -90,6 +90,7 @@ efl_model_load_and_wait_for_load_status(Eo *obj, Efl_Model_Load_Status expected_
90void 90void
91check_init(void) 91check_init(void)
92{ 92{
93 ecore_init();
93 int ret = eldbus_init(); 94 int ret = eldbus_init();
94 ck_assert_int_ge(ret, 1); 95 ck_assert_int_ge(ret, 1);
95} 96}
@@ -99,6 +100,7 @@ check_shutdown(void)
99{ 100{
100 int ret = eldbus_shutdown(); 101 int ret = eldbus_shutdown();
101 ck_assert_int_eq(ret, 0); 102 ck_assert_int_eq(ret, 0);
103 ecore_shutdown();
102} 104}
103 105
104void 106void