summaryrefslogtreecommitdiff
path: root/src/tests/elocation
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-03-26 14:19:28 -0400
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-05 11:10:25 +0200
commitadc601aca2f0a16784af36bf6ae7dd20eeb33202 (patch)
treecac0a78fa40e88abb028b06d985c28bf89da269c /src/tests/elocation
parentb340b5e49ccae48a7d5adbbfa301af39e232348c (diff)
tests: add instrumentation to existing tests to find slow tests
efl_check.h must be included and the EFL_START/END_TEST macros must be used in place of normal START/END_TEST macros timing is enabled when TIMING_ENABLED is set https://phab.enlightenment.org/w/improve_tests/ Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Diffstat (limited to 'src/tests/elocation')
-rw-r--r--src/tests/elocation/elocation_suite.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tests/elocation/elocation_suite.c b/src/tests/elocation/elocation_suite.c
index c9ff759e82..afae6e03b1 100644
--- a/src/tests/elocation/elocation_suite.c
+++ b/src/tests/elocation/elocation_suite.c
@@ -12,7 +12,7 @@
12/* Test the init and shutdown pathes only. Good to do that as we don't set up 12/* Test the init and shutdown pathes only. Good to do that as we don't set up
13 * other things and already triggered problems with this. 13 * other things and already triggered problems with this.
14 */ 14 */
15START_TEST(elocation_test_init) 15EFL_START_TEST(elocation_test_init)
16{ 16{
17 Eina_Bool ret; 17 Eina_Bool ret;
18 18
@@ -21,10 +21,10 @@ START_TEST(elocation_test_init)
21 21
22 elocation_shutdown(); 22 elocation_shutdown();
23} 23}
24END_TEST 24EFL_END_TEST
25 25
26/* Basic address object testing. Creating and freeing the object */ 26/* Basic address object testing. Creating and freeing the object */
27START_TEST(elocation_test_address_object) 27EFL_START_TEST(elocation_test_address_object)
28{ 28{
29 Eina_Bool ret; 29 Eina_Bool ret;
30 Elocation_Address *address = NULL; 30 Elocation_Address *address = NULL;
@@ -39,10 +39,10 @@ START_TEST(elocation_test_address_object)
39 39
40 elocation_shutdown(); 40 elocation_shutdown();
41} 41}
42END_TEST 42EFL_END_TEST
43 43
44/* Basic position object testing. Creating and freeing the object */ 44/* Basic position object testing. Creating and freeing the object */
45START_TEST(elocation_test_position_object) 45EFL_START_TEST(elocation_test_position_object)
46{ 46{
47 Eina_Bool ret; 47 Eina_Bool ret;
48 Elocation_Position *position = NULL; 48 Elocation_Position *position = NULL;
@@ -57,7 +57,7 @@ START_TEST(elocation_test_position_object)
57 57
58 elocation_shutdown(); 58 elocation_shutdown();
59} 59}
60END_TEST 60EFL_END_TEST
61 61
62/* Basic testing for the various functions of the GeoCode API */ 62/* Basic testing for the various functions of the GeoCode API */
63static int cb_count = 0; 63static int cb_count = 0;
@@ -74,7 +74,7 @@ event_cb(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *event)
74 return ECORE_CALLBACK_DONE; 74 return ECORE_CALLBACK_DONE;
75} 75}
76 76
77START_TEST(elocation_test_api_geocode) 77EFL_START_TEST(elocation_test_api_geocode)
78{ 78{
79 Eina_Bool ret; 79 Eina_Bool ret;
80 Elocation_Position *position = NULL; 80 Elocation_Position *position = NULL;
@@ -117,10 +117,10 @@ START_TEST(elocation_test_api_geocode)
117 117
118 elocation_shutdown(); 118 elocation_shutdown();
119} 119}
120END_TEST 120EFL_END_TEST
121 121
122/* Basic testing for position API */ 122/* Basic testing for position API */
123START_TEST(elocation_test_api_position) 123EFL_START_TEST(elocation_test_api_position)
124{ 124{
125 Eina_Bool ret; 125 Eina_Bool ret;
126 Elocation_Position *position = NULL; 126 Elocation_Position *position = NULL;
@@ -138,10 +138,10 @@ START_TEST(elocation_test_api_position)
138 138
139 elocation_shutdown(); 139 elocation_shutdown();
140} 140}
141END_TEST 141EFL_END_TEST
142 142
143/* Basic testing for address API */ 143/* Basic testing for address API */
144START_TEST(elocation_test_api_address) 144EFL_START_TEST(elocation_test_api_address)
145{ 145{
146 Eina_Bool ret; 146 Eina_Bool ret;
147 Elocation_Address *address = NULL; 147 Elocation_Address *address = NULL;
@@ -159,10 +159,10 @@ START_TEST(elocation_test_api_address)
159 159
160 elocation_shutdown(); 160 elocation_shutdown();
161} 161}
162END_TEST 162EFL_END_TEST
163 163
164/* Basic testing for status API */ 164/* Basic testing for status API */
165START_TEST(elocation_test_api_status) 165EFL_START_TEST(elocation_test_api_status)
166{ 166{
167 Eina_Bool ret; 167 Eina_Bool ret;
168 int status = 0; 168 int status = 0;
@@ -175,7 +175,7 @@ START_TEST(elocation_test_api_status)
175 175
176 elocation_shutdown(); 176 elocation_shutdown();
177} 177}
178END_TEST 178EFL_END_TEST
179 179
180Suite * 180Suite *
181elocation_suite(void) 181elocation_suite(void)