summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-03-27 13:51:13 -0400
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-05 11:10:26 +0200
commit624925fe6e9c72c639d47135d5ea70d4110ac1fe (patch)
treeb57c12a611bf3b4b492327a7fcb5722cd39dad5b /src/tests/ecore_con/ecore_con_test_ecore_con_url.c
parent730020c7d4a87daf60cbfbb3a0a912b4f75d8cb5 (diff)
tests: move to using checked fixtures for all test suites
individual tests should not need to explicitly call init/shutdown functions in most cases, and many did not properly do this anyway see followup commit which resolves some issues with eina tests ref T6813 ref T6811 Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Diffstat (limited to 'src/tests/ecore_con/ecore_con_test_ecore_con_url.c')
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con_url.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/tests/ecore_con/ecore_con_test_ecore_con_url.c b/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
index c1da064352..bdf26f07c3 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con_url.c
@@ -172,8 +172,6 @@ EFL_START_TEST(ecore_con_test_ecore_con_url_ftp_upload)
172 char link[] = ECORE_CON_FTP_TEST_URL; 172 char link[] = ECORE_CON_FTP_TEST_URL;
173 char url[4096], *username, *password, *file = NULL, *dir = NULL; 173 char url[4096], *username, *password, *file = NULL, *dir = NULL;
174 174
175 ret = eina_init();
176 fail_if(ret != 1);
177 ret = ecore_con_url_init(); 175 ret = ecore_con_url_init();
178 fail_if(ret != 1); 176 fail_if(ret != 1);
179 177
@@ -196,7 +194,6 @@ EFL_START_TEST(ecore_con_test_ecore_con_url_ftp_upload)
196 194
197 ret = ecore_con_url_shutdown(); 195 ret = ecore_con_url_shutdown();
198 fail_if(ret != 0); 196 fail_if(ret != 0);
199 ret = eina_shutdown();
200} 197}
201EFL_END_TEST 198EFL_END_TEST
202#endif 199#endif
@@ -212,8 +209,6 @@ EFL_START_TEST(ecore_con_test_ecore_con_url_post)
212 char *username = NULL, *password = NULL; 209 char *username = NULL, *password = NULL;
213 char url[4096]; 210 char url[4096];
214 211
215 ret = eina_init();
216 fail_if(ret != 1);
217 ret = ecore_con_url_init(); 212 ret = ecore_con_url_init();
218 fail_if(ret != 1); 213 fail_if(ret != 1);
219 214
@@ -240,7 +235,6 @@ EFL_START_TEST(ecore_con_test_ecore_con_url_post)
240 235
241 ret = ecore_con_url_shutdown(); 236 ret = ecore_con_url_shutdown();
242 fail_if(ret != 0); 237 fail_if(ret != 0);
243 ret = eina_shutdown();
244} 238}
245EFL_END_TEST 239EFL_END_TEST
246#endif 240#endif
@@ -257,8 +251,6 @@ EFL_START_TEST(ecore_con_test_ecore_con_url_download)
257#endif 251#endif
258 char url_data[] = "test"; 252 char url_data[] = "test";
259 253
260 ret = eina_init();
261 fail_if(ret != 1);
262 ret = ecore_con_url_init(); 254 ret = ecore_con_url_init();
263 fail_if(ret != 1); 255 fail_if(ret != 1);
264 256
@@ -290,7 +282,6 @@ EFL_START_TEST(ecore_con_test_ecore_con_url_download)
290 282
291 ret = ecore_con_url_shutdown(); 283 ret = ecore_con_url_shutdown();
292 fail_if(ret != 0); 284 fail_if(ret != 0);
293 ret = eina_shutdown();
294} 285}
295EFL_END_TEST 286EFL_END_TEST
296 287
@@ -299,8 +290,6 @@ EFL_START_TEST(ecore_con_test_ecore_con_url_create)
299 Ecore_Con_Url *url; 290 Ecore_Con_Url *url;
300 int ret; 291 int ret;
301 292
302 ret = eina_init();
303 fail_if(ret != 1);
304 ret = ecore_con_url_init(); 293 ret = ecore_con_url_init();
305 fail_if(ret != 1); 294 fail_if(ret != 1);
306 295
@@ -311,7 +300,6 @@ EFL_START_TEST(ecore_con_test_ecore_con_url_create)
311 300
312 ret = ecore_con_url_shutdown(); 301 ret = ecore_con_url_shutdown();
313 fail_if(ret != 0); 302 fail_if(ret != 0);
314 ret = eina_shutdown();
315} 303}
316EFL_END_TEST 304EFL_END_TEST
317 305
@@ -359,8 +347,6 @@ _ecore_con_url_cookies_test_init()
359 const char link[] = DEFAULT_LINK; 347 const char link[] = DEFAULT_LINK;
360#endif 348#endif
361 349
362 eina_init();
363 ecore_con_init();
364 ecore_con_url_init(); 350 ecore_con_url_init();
365 351
366 ec_url = ecore_con_url_new(link); 352 ec_url = ecore_con_url_new(link);
@@ -385,8 +371,6 @@ _ecore_con_url_cookies_test_shutdown(Ecore_Con_Url *ec_url, int tmpfd, Eina_Tmps
385 eina_tmpstr_del(*path); 371 eina_tmpstr_del(*path);
386 ecore_con_url_free(ec_url); 372 ecore_con_url_free(ec_url);
387 ecore_con_url_shutdown(); 373 ecore_con_url_shutdown();
388 ecore_con_shutdown();
389 eina_shutdown();
390} 374}
391 375
392EFL_START_TEST(ecore_con_test_ecore_con_url_cookies_clear) 376EFL_START_TEST(ecore_con_test_ecore_con_url_cookies_clear)