tests/eldbus: add now needed calls to ecore_init/shutdown
authorStefan Schmidt <stefan@osg.samsung.com>
Tue, 12 Apr 2016 15:22:28 +0000 (17:22 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Tue, 12 Apr 2016 15:22:28 +0000 (17:22 +0200)
Since commit 53c66c98c2ae13a8c96b4ae1f9d735cda179e89d eldbus o longer calls
ecore_init() wo we need to handle this. Fixes the edlbus tests cases.

src/tests/eldbus/eldbus_test_eldbus_init.c
src/tests/eldbus/eldbus_test_eldbus_model.c

index f530d4c..65f229e 100644 (file)
@@ -22,10 +22,13 @@ START_TEST(eldbus_test_eldbus)
 {
    int ret;
 
+   ecore_init();
    ret = eldbus_init();
    fail_if(ret < 1);
 
    ret = eldbus_shutdown();
+
+   ecore_shutdown();
 }
 END_TEST
 
index 8dc5e15..86ba35a 100644 (file)
@@ -90,6 +90,7 @@ efl_model_load_and_wait_for_load_status(Eo *obj, Efl_Model_Load_Status expected_
 void
 check_init(void)
 {
+   ecore_init();
    int ret = eldbus_init();
    ck_assert_int_ge(ret, 1);
 }
@@ -99,6 +100,7 @@ check_shutdown(void)
 {
    int ret = eldbus_shutdown();
    ck_assert_int_eq(ret, 0);
+   ecore_shutdown();
 }
 
 void