summaryrefslogtreecommitdiff
path: root/src/tests/elocation
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-10-29 09:48:55 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2014-11-11 11:10:12 +0100
commit0d6dcb958190942adb175a88760d3ac9021d302d (patch)
tree8af13ada8c512b1a8e6cc1b822ce03b8ed58d87e /src/tests/elocation
parent61a27cbf7f47b0d4736df2e0037475b1085e3ac3 (diff)
tests/elocation: Avoid testing of non elocation things in the elocation suite
These inits and shutdown are already done in elocation_init() directly. As we do not use any of its functionality here we better concentrate on elocation unit tests in here.
Diffstat (limited to 'src/tests/elocation')
-rw-r--r--src/tests/elocation/elocation_suite.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/tests/elocation/elocation_suite.c b/src/tests/elocation/elocation_suite.c
index c049bd1749..8077101e02 100644
--- a/src/tests/elocation/elocation_suite.c
+++ b/src/tests/elocation/elocation_suite.c
@@ -5,8 +5,6 @@
5#include <stdlib.h> 5#include <stdlib.h>
6#include <stdio.h> 6#include <stdio.h>
7 7
8#include <Eina.h>
9
10#include <check.h> 8#include <check.h>
11 9
12#include <Elocation.h> 10#include <Elocation.h>
@@ -18,16 +16,10 @@ START_TEST(elocation_test_init)
18{ 16{
19 Eina_Bool ret; 17 Eina_Bool ret;
20 18
21 ret = ecore_init();
22 fail_if(ret != EINA_TRUE);
23 ret = eldbus_init();
24 fail_if(ret != EINA_TRUE);
25 ret = elocation_init(); 19 ret = elocation_init();
26 fail_if(ret != EINA_TRUE); 20 fail_if(ret != EINA_TRUE);
27 21
28 elocation_shutdown(); 22 elocation_shutdown();
29 eldbus_shutdown();
30 ecore_shutdown();
31} 23}
32END_TEST 24END_TEST
33 25
@@ -37,10 +29,6 @@ START_TEST(elocation_test_address_object)
37 Eina_Bool ret; 29 Eina_Bool ret;
38 Elocation_Address *address = NULL; 30 Elocation_Address *address = NULL;
39 31
40 ret = ecore_init();
41 fail_if(ret != EINA_TRUE);
42 ret = eldbus_init();
43 fail_if(ret != EINA_TRUE);
44 ret = elocation_init(); 32 ret = elocation_init();
45 fail_if(ret != EINA_TRUE); 33 fail_if(ret != EINA_TRUE);
46 34
@@ -50,8 +38,6 @@ START_TEST(elocation_test_address_object)
50 elocation_address_free(address); 38 elocation_address_free(address);
51 39
52 elocation_shutdown(); 40 elocation_shutdown();
53 eldbus_shutdown();
54 ecore_shutdown();
55} 41}
56END_TEST 42END_TEST
57 43
@@ -61,10 +47,6 @@ START_TEST(elocation_test_position_object)
61 Eina_Bool ret; 47 Eina_Bool ret;
62 Elocation_Position *position = NULL; 48 Elocation_Position *position = NULL;
63 49
64 ret = ecore_init();
65 fail_if(ret != EINA_TRUE);
66 ret = eldbus_init();
67 fail_if(ret != EINA_TRUE);
68 ret = elocation_init(); 50 ret = elocation_init();
69 fail_if(ret != EINA_TRUE); 51 fail_if(ret != EINA_TRUE);
70 52
@@ -74,8 +56,6 @@ START_TEST(elocation_test_position_object)
74 elocation_position_free(position); 56 elocation_position_free(position);
75 57
76 elocation_shutdown(); 58 elocation_shutdown();
77 eldbus_shutdown();
78 ecore_shutdown();
79} 59}
80END_TEST 60END_TEST
81 61
@@ -86,10 +66,6 @@ START_TEST(elocation_test_api_geocode)
86 Elocation_Position *position = NULL; 66 Elocation_Position *position = NULL;
87 Elocation_Address *address = NULL; 67 Elocation_Address *address = NULL;
88 68
89 ret = ecore_init();
90 fail_if(ret != EINA_TRUE);
91 ret = eldbus_init();
92 fail_if(ret != EINA_TRUE);
93 ret = elocation_init(); 69 ret = elocation_init();
94 fail_if(ret != EINA_TRUE); 70 fail_if(ret != EINA_TRUE);
95 71
@@ -117,8 +93,6 @@ START_TEST(elocation_test_api_geocode)
117 elocation_address_free(address); 93 elocation_address_free(address);
118 94
119 elocation_shutdown(); 95 elocation_shutdown();
120 eldbus_shutdown();
121 ecore_shutdown();
122} 96}
123END_TEST 97END_TEST
124 98
@@ -128,10 +102,6 @@ START_TEST(elocation_test_api_position)
128 Eina_Bool ret; 102 Eina_Bool ret;
129 Elocation_Position *position = NULL; 103 Elocation_Position *position = NULL;
130 104
131 ret = ecore_init();
132 fail_if(ret != EINA_TRUE);
133 ret = eldbus_init();
134 fail_if(ret != EINA_TRUE);
135 ret = elocation_init(); 105 ret = elocation_init();
136 fail_if(ret != EINA_TRUE); 106 fail_if(ret != EINA_TRUE);
137 107
@@ -144,8 +114,6 @@ START_TEST(elocation_test_api_position)
144 elocation_position_free(position); 114 elocation_position_free(position);
145 115
146 elocation_shutdown(); 116 elocation_shutdown();
147 eldbus_shutdown();
148 ecore_shutdown();
149} 117}
150END_TEST 118END_TEST
151 119
@@ -155,10 +123,6 @@ START_TEST(elocation_test_api_address)
155 Eina_Bool ret; 123 Eina_Bool ret;
156 Elocation_Address *address = NULL; 124 Elocation_Address *address = NULL;
157 125
158 ret = ecore_init();
159 fail_if(ret != EINA_TRUE);
160 ret = eldbus_init();
161 fail_if(ret != EINA_TRUE);
162 ret = elocation_init(); 126 ret = elocation_init();
163 fail_if(ret != EINA_TRUE); 127 fail_if(ret != EINA_TRUE);
164 128
@@ -171,8 +135,6 @@ START_TEST(elocation_test_api_address)
171 elocation_address_free(address); 135 elocation_address_free(address);
172 136
173 elocation_shutdown(); 137 elocation_shutdown();
174 eldbus_shutdown();
175 ecore_shutdown();
176} 138}
177END_TEST 139END_TEST
178 140
@@ -182,10 +144,6 @@ START_TEST(elocation_test_api_status)
182 Eina_Bool ret; 144 Eina_Bool ret;
183 int status = 0; 145 int status = 0;
184 146
185 ret = ecore_init();
186 fail_if(ret != EINA_TRUE);
187 ret = eldbus_init();
188 fail_if(ret != EINA_TRUE);
189 ret = elocation_init(); 147 ret = elocation_init();
190 fail_if(ret != EINA_TRUE); 148 fail_if(ret != EINA_TRUE);
191 149
@@ -193,8 +151,6 @@ START_TEST(elocation_test_api_status)
193 fail_if(ret != EINA_TRUE); 151 fail_if(ret != EINA_TRUE);
194 152
195 elocation_shutdown(); 153 elocation_shutdown();
196 eldbus_shutdown();
197 ecore_shutdown();
198} 154}
199END_TEST 155END_TEST
200 156