summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con
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/ecore_con
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/ecore_con')
-rw-r--r--src/tests/ecore_con/ecore_con_suite.h2
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con.c96
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con_eet.c8
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con_url.c32
-rw-r--r--src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c80
5 files changed, 109 insertions, 109 deletions
diff --git a/src/tests/ecore_con/ecore_con_suite.h b/src/tests/ecore_con/ecore_con_suite.h
index 133b68a..2c16d2d 100644
--- a/src/tests/ecore_con/ecore_con_suite.h
+++ b/src/tests/ecore_con/ecore_con_suite.h
@@ -2,7 +2,7 @@
2#define _ECORE_CON_SUITE_H 2#define _ECORE_CON_SUITE_H
3 3
4#include <check.h> 4#include <check.h>
5 5#include "../efl_check.h"
6void ecore_con_test_ecore_con(TCase *tc); 6void ecore_con_test_ecore_con(TCase *tc);
7void ecore_con_test_ecore_con_url(TCase *tc); 7void ecore_con_test_ecore_con_url(TCase *tc);
8void ecore_con_test_ecore_con_eet(TCase *tc); 8void ecore_con_test_ecore_con_eet(TCase *tc);
diff --git a/src/tests/ecore_con/ecore_con_test_ecore_con.c b/src/tests/ecore_con/ecore_con_test_ecore_con.c
index 87522c0..df481bc 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con.c
@@ -322,13 +322,13 @@ void _ecore_con_server_client_tests(Ecore_Con_Type compl_type, const char *name,
322 ret = eina_shutdown(); 322 ret = eina_shutdown();
323} 323}
324 324
325START_TEST(ecore_test_ecore_con_local_user) 325EFL_START_TEST(ecore_test_ecore_con_local_user)
326{ 326{
327 _ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_sock", EINA_FALSE, 12345); 327 _ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_sock", EINA_FALSE, 12345);
328} 328}
329END_TEST 329EFL_END_TEST
330 330
331START_TEST(ecore_test_ecore_con_local_user_home) 331EFL_START_TEST(ecore_test_ecore_con_local_user_home)
332{ 332{
333 const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR"); 333 const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR");
334 334
@@ -336,9 +336,9 @@ START_TEST(ecore_test_ecore_con_local_user_home)
336 _ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_soc", EINA_FALSE, 12345); 336 _ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_soc", EINA_FALSE, 12345);
337 if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1); 337 if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1);
338} 338}
339END_TEST 339EFL_END_TEST
340 340
341START_TEST(ecore_test_ecore_con_local_user_tmp) 341EFL_START_TEST(ecore_test_ecore_con_local_user_tmp)
342{ 342{
343 const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR"); 343 const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR");
344 const char *homedir = getenv("HOME"); 344 const char *homedir = getenv("HOME");
@@ -349,9 +349,9 @@ START_TEST(ecore_test_ecore_con_local_user_tmp)
349 if (homedir) setenv("HOME", homedir, 1); 349 if (homedir) setenv("HOME", homedir, 1);
350 if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1); 350 if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1);
351} 351}
352END_TEST 352EFL_END_TEST
353 353
354START_TEST(ecore_test_ecore_con_local_user_none) 354EFL_START_TEST(ecore_test_ecore_con_local_user_none)
355{ 355{
356 const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR"); 356 const char *xdg_runtime_dir = getenv("XDG_RUNTIME_DIR");
357 const char *homedir = getenv("HOME"); 357 const char *homedir = getenv("HOME");
@@ -365,99 +365,99 @@ START_TEST(ecore_test_ecore_con_local_user_none)
365 if (homedir) setenv("HOME", homedir, 1); 365 if (homedir) setenv("HOME", homedir, 1);
366 if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1); 366 if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1);
367} 367}
368END_TEST 368EFL_END_TEST
369 369
370START_TEST(ecore_test_ecore_con_local_system) 370EFL_START_TEST(ecore_test_ecore_con_local_system)
371{ 371{
372 _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "test_sock", EINA_FALSE, 12345); 372 _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "test_sock", EINA_FALSE, 12345);
373} 373}
374END_TEST 374EFL_END_TEST
375 375
376START_TEST(ecore_test_ecore_con_local_system_fullpath) 376EFL_START_TEST(ecore_test_ecore_con_local_system_fullpath)
377{ 377{
378 _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "/tmp/test_sock", EINA_FALSE, 12345); 378 _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "/tmp/test_sock", EINA_FALSE, 12345);
379} 379}
380END_TEST 380EFL_END_TEST
381 381
382START_TEST(ecore_test_ecore_con_local_system_negport) 382EFL_START_TEST(ecore_test_ecore_con_local_system_negport)
383{ 383{
384 _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "test_sock", EINA_FALSE, -6); 384 _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "test_sock", EINA_FALSE, -6);
385} 385}
386END_TEST 386EFL_END_TEST
387 387
388START_TEST(ecore_test_ecore_con_local_system_negport_fullpath) 388EFL_START_TEST(ecore_test_ecore_con_local_system_negport_fullpath)
389{ 389{
390 _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "/tmp/test_sock", EINA_FALSE, -6); 390 _ecore_con_server_client_tests(ECORE_CON_LOCAL_SYSTEM, "/tmp/test_sock", EINA_FALSE, -6);
391} 391}
392END_TEST 392EFL_END_TEST
393 393
394START_TEST(ecore_test_ecore_con_local_abstract) 394EFL_START_TEST(ecore_test_ecore_con_local_abstract)
395{ 395{
396 _ecore_con_server_client_tests(ECORE_CON_LOCAL_ABSTRACT, "test_sock", EINA_FALSE, 12345); 396 _ecore_con_server_client_tests(ECORE_CON_LOCAL_ABSTRACT, "test_sock", EINA_FALSE, 12345);
397} 397}
398END_TEST 398EFL_END_TEST
399 399
400START_TEST(ecore_test_ecore_con_remote_tcp) 400EFL_START_TEST(ecore_test_ecore_con_remote_tcp)
401{ 401{
402 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP, "127.0.0.1", EINA_FALSE, 12345); 402 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP, "127.0.0.1", EINA_FALSE, 12345);
403} 403}
404END_TEST 404EFL_END_TEST
405 405
406START_TEST(ecore_test_ecore_con_remote_nodelay) 406EFL_START_TEST(ecore_test_ecore_con_remote_nodelay)
407{ 407{
408 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY, "127.0.0.1", EINA_FALSE, 12345); 408 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY, "127.0.0.1", EINA_FALSE, 12345);
409} 409}
410END_TEST 410EFL_END_TEST
411 411
412START_TEST(ecore_test_ecore_con_remote_tcp_tls) 412EFL_START_TEST(ecore_test_ecore_con_remote_tcp_tls)
413{ 413{
414 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_TLS, "127.0.0.1", EINA_TRUE, 12345); 414 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_TLS, "127.0.0.1", EINA_TRUE, 12345);
415} 415}
416END_TEST 416EFL_END_TEST
417 417
418START_TEST(ecore_test_ecore_con_remote_tcp_tls_load_cert) 418EFL_START_TEST(ecore_test_ecore_con_remote_tcp_tls_load_cert)
419{ 419{
420 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_TLS | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345); 420 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_TLS | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345);
421} 421}
422END_TEST 422EFL_END_TEST
423 423
424START_TEST(ecore_test_ecore_con_remote_tcp_mixed) 424EFL_START_TEST(ecore_test_ecore_con_remote_tcp_mixed)
425{ 425{
426 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED, "127.0.0.1", EINA_TRUE, 12345); 426 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED, "127.0.0.1", EINA_TRUE, 12345);
427} 427}
428END_TEST 428EFL_END_TEST
429 429
430START_TEST(ecore_test_ecore_con_remote_tcp_mixed_load_cert) 430EFL_START_TEST(ecore_test_ecore_con_remote_tcp_mixed_load_cert)
431{ 431{
432 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345); 432 _ecore_con_server_client_tests(ECORE_CON_REMOTE_TCP | ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345);
433} 433}
434END_TEST 434EFL_END_TEST
435 435
436START_TEST(ecore_test_ecore_con_remote_nodelay_tls) 436EFL_START_TEST(ecore_test_ecore_con_remote_nodelay_tls)
437{ 437{
438 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_TLS, "127.0.0.1", EINA_TRUE, 12345); 438 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_TLS, "127.0.0.1", EINA_TRUE, 12345);
439} 439}
440END_TEST 440EFL_END_TEST
441 441
442START_TEST(ecore_test_ecore_con_remote_nodelay_tls_load_cert) 442EFL_START_TEST(ecore_test_ecore_con_remote_nodelay_tls_load_cert)
443{ 443{
444 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_TLS | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345); 444 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_TLS | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345);
445} 445}
446END_TEST 446EFL_END_TEST
447 447
448START_TEST(ecore_test_ecore_con_remote_nodelay_mixed) 448EFL_START_TEST(ecore_test_ecore_con_remote_nodelay_mixed)
449{ 449{
450 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_MIXED, "127.0.0.1", EINA_TRUE, 12345); 450 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_MIXED, "127.0.0.1", EINA_TRUE, 12345);
451} 451}
452END_TEST 452EFL_END_TEST
453 453
454START_TEST(ecore_test_ecore_con_remote_nodelay_mixed_load_cert) 454EFL_START_TEST(ecore_test_ecore_con_remote_nodelay_mixed_load_cert)
455{ 455{
456 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345); 456 _ecore_con_server_client_tests(ECORE_CON_REMOTE_NODELAY | ECORE_CON_USE_MIXED | ECORE_CON_LOAD_CERT, "127.0.0.1", EINA_TRUE, 12345);
457} 457}
458END_TEST 458EFL_END_TEST
459 459
460START_TEST(ecore_test_ecore_con_ssl_available) 460EFL_START_TEST(ecore_test_ecore_con_ssl_available)
461{ 461{
462 int ret = ecore_con_ssl_available_get(); 462 int ret = ecore_con_ssl_available_get();
463#ifdef HAVE_GNUTLS 463#ifdef HAVE_GNUTLS
@@ -468,9 +468,9 @@ START_TEST(ecore_test_ecore_con_ssl_available)
468 fail_if(!ret); 468 fail_if(!ret);
469#endif 469#endif
470} 470}
471END_TEST 471EFL_END_TEST
472 472
473START_TEST(ecore_test_ecore_con_init) 473EFL_START_TEST(ecore_test_ecore_con_init)
474{ 474{
475 int ret; 475 int ret;
476 476
@@ -480,9 +480,9 @@ START_TEST(ecore_test_ecore_con_init)
480 ret = ecore_con_shutdown(); 480 ret = ecore_con_shutdown();
481 fail_if(ret != 0); 481 fail_if(ret != 0);
482} 482}
483END_TEST 483EFL_END_TEST
484 484
485START_TEST(ecore_test_ecore_con_dns) 485EFL_START_TEST(ecore_test_ecore_con_dns)
486{ 486{
487 Ecore_Con_Server *client; 487 Ecore_Con_Server *client;
488 Ecore_Event_Handler *e_err; 488 Ecore_Event_Handler *e_err;
@@ -514,9 +514,9 @@ START_TEST(ecore_test_ecore_con_dns)
514 fail_if(ret != 0); 514 fail_if(ret != 0);
515 ret = eina_shutdown(); 515 ret = eina_shutdown();
516} 516}
517END_TEST 517EFL_END_TEST
518 518
519START_TEST(ecore_test_ecore_con_shutdown_bef_init) 519EFL_START_TEST(ecore_test_ecore_con_shutdown_bef_init)
520{ 520{
521 int ret; 521 int ret;
522 522
@@ -531,7 +531,7 @@ START_TEST(ecore_test_ecore_con_shutdown_bef_init)
531 fail_if(ret != 0); 531 fail_if(ret != 0);
532 eina_shutdown(); 532 eina_shutdown();
533} 533}
534END_TEST 534EFL_END_TEST
535 535
536static void 536static void
537_lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data) 537_lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, int addrlen, void *data)
@@ -546,7 +546,7 @@ _lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, in
546 ecore_main_loop_quit(); 546 ecore_main_loop_quit();
547} 547}
548 548
549START_TEST(ecore_test_ecore_con_dns_lookup) 549EFL_START_TEST(ecore_test_ecore_con_dns_lookup)
550{ 550{
551 const char link[] = "www.google.com"; 551 const char link[] = "www.google.com";
552 ecore_con_init(); 552 ecore_con_init();
@@ -557,7 +557,7 @@ START_TEST(ecore_test_ecore_con_dns_lookup)
557 557
558 ecore_con_shutdown(); 558 ecore_con_shutdown();
559} 559}
560END_TEST 560EFL_END_TEST
561 561
562void ecore_con_test_ecore_con(TCase *tc) 562void ecore_con_test_ecore_con(TCase *tc)
563{ 563{
diff --git a/src/tests/ecore_con/ecore_con_test_ecore_con_eet.c b/src/tests/ecore_con/ecore_con_test_ecore_con_eet.c
index 9a054e3..bc27f52 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con_eet.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con_eet.c
@@ -111,7 +111,7 @@ _eet_raw_data_cb(void *data, Ecore_Con_Reply *reply, const char *protocol_name E
111 ecore_con_server_del(cl); 111 ecore_con_server_del(cl);
112} 112}
113 113
114START_TEST(ecore_con_test_ecore_con_eet_svr_cl) 114EFL_START_TEST(ecore_con_test_ecore_con_eet_svr_cl)
115{ 115{
116 Ecore_Con_Eet *ece_svr, *ece_cl; 116 Ecore_Con_Eet *ece_svr, *ece_cl;
117 Ecore_Con_Server *svr, *cl; 117 Ecore_Con_Server *svr, *cl;
@@ -169,7 +169,7 @@ START_TEST(ecore_con_test_ecore_con_eet_svr_cl)
169 eet_shutdown(); 169 eet_shutdown();
170 eina_shutdown(); 170 eina_shutdown();
171} 171}
172END_TEST 172EFL_END_TEST
173 173
174static Eina_Bool 174static Eina_Bool
175_eet_svr_discnct_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply EINA_UNUSED, Ecore_Con_Server *conn EINA_UNUSED) 175_eet_svr_discnct_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply EINA_UNUSED, Ecore_Con_Server *conn EINA_UNUSED)
@@ -193,7 +193,7 @@ _eet_svr_raw_data_cb(void *data, Ecore_Con_Reply *reply, const char *protocol_na
193 ecore_con_server_del(svr); 193 ecore_con_server_del(svr);
194} 194}
195 195
196START_TEST(ecore_con_test_ecore_con_eet_svr_del) 196EFL_START_TEST(ecore_con_test_ecore_con_eet_svr_del)
197{ 197{
198 Ecore_Con_Eet *ece_svr, *ece_cl; 198 Ecore_Con_Eet *ece_svr, *ece_cl;
199 Ecore_Con_Server *svr, *cl; 199 Ecore_Con_Server *svr, *cl;
@@ -239,7 +239,7 @@ START_TEST(ecore_con_test_ecore_con_eet_svr_del)
239 eet_shutdown(); 239 eet_shutdown();
240 eina_shutdown(); 240 eina_shutdown();
241} 241}
242END_TEST 242EFL_END_TEST
243 243
244void ecore_con_test_ecore_con_eet(TCase *tc) 244void ecore_con_test_ecore_con_eet(TCase *tc)
245{ 245{
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 1b73218..c1da064 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
@@ -164,7 +164,7 @@ error_user:
164#endif 164#endif
165 165
166#ifdef ECORE_CON_FTP_TEST_URL 166#ifdef ECORE_CON_FTP_TEST_URL
167START_TEST(ecore_con_test_ecore_con_url_ftp_upload) 167EFL_START_TEST(ecore_con_test_ecore_con_url_ftp_upload)
168{ 168{
169 Ecore_Con_Url *ec_url; 169 Ecore_Con_Url *ec_url;
170 url_test *info = NULL; 170 url_test *info = NULL;
@@ -198,11 +198,11 @@ START_TEST(ecore_con_test_ecore_con_url_ftp_upload)
198 fail_if(ret != 0); 198 fail_if(ret != 0);
199 ret = eina_shutdown(); 199 ret = eina_shutdown();
200} 200}
201END_TEST 201EFL_END_TEST
202#endif 202#endif
203 203
204#ifdef ECORE_CON_HTTP_TEST_URL 204#ifdef ECORE_CON_HTTP_TEST_URL
205START_TEST(ecore_con_test_ecore_con_url_post) 205EFL_START_TEST(ecore_con_test_ecore_con_url_post)
206{ 206{
207 Ecore_Con_Url *ec_url; 207 Ecore_Con_Url *ec_url;
208 url_test *info = NULL; 208 url_test *info = NULL;
@@ -242,10 +242,10 @@ START_TEST(ecore_con_test_ecore_con_url_post)
242 fail_if(ret != 0); 242 fail_if(ret != 0);
243 ret = eina_shutdown(); 243 ret = eina_shutdown();
244} 244}
245END_TEST 245EFL_END_TEST
246#endif 246#endif
247 247
248START_TEST(ecore_con_test_ecore_con_url_download) 248EFL_START_TEST(ecore_con_test_ecore_con_url_download)
249{ 249{
250 Ecore_Con_Url *url; 250 Ecore_Con_Url *url;
251 url_test *info; 251 url_test *info;
@@ -292,9 +292,9 @@ START_TEST(ecore_con_test_ecore_con_url_download)
292 fail_if(ret != 0); 292 fail_if(ret != 0);
293 ret = eina_shutdown(); 293 ret = eina_shutdown();
294} 294}
295END_TEST 295EFL_END_TEST
296 296
297START_TEST(ecore_con_test_ecore_con_url_create) 297EFL_START_TEST(ecore_con_test_ecore_con_url_create)
298{ 298{
299 Ecore_Con_Url *url; 299 Ecore_Con_Url *url;
300 int ret; 300 int ret;
@@ -313,9 +313,9 @@ START_TEST(ecore_con_test_ecore_con_url_create)
313 fail_if(ret != 0); 313 fail_if(ret != 0);
314 ret = eina_shutdown(); 314 ret = eina_shutdown();
315} 315}
316END_TEST 316EFL_END_TEST
317 317
318START_TEST(ecore_con_test_ecore_con_url_init) 318EFL_START_TEST(ecore_con_test_ecore_con_url_init)
319{ 319{
320 int ret; 320 int ret;
321 321
@@ -325,7 +325,7 @@ START_TEST(ecore_con_test_ecore_con_url_init)
325 ret = ecore_con_url_shutdown(); 325 ret = ecore_con_url_shutdown();
326 fail_if(ret != 0); 326 fail_if(ret != 0);
327} 327}
328END_TEST 328EFL_END_TEST
329 329
330static Eina_Bool 330static Eina_Bool
331_url_cookies_compl_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info) 331_url_cookies_compl_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event_info)
@@ -389,7 +389,7 @@ _ecore_con_url_cookies_test_shutdown(Ecore_Con_Url *ec_url, int tmpfd, Eina_Tmps
389 eina_shutdown(); 389 eina_shutdown();
390} 390}
391 391
392START_TEST(ecore_con_test_ecore_con_url_cookies_clear) 392EFL_START_TEST(ecore_con_test_ecore_con_url_cookies_clear)
393{ 393{
394 Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init(); 394 Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init();
395 Eina_Tmpstr *path; 395 Eina_Tmpstr *path;
@@ -407,9 +407,9 @@ START_TEST(ecore_con_test_ecore_con_url_cookies_clear)
407 407
408 _ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path); 408 _ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path);
409} 409}
410END_TEST 410EFL_END_TEST
411 411
412START_TEST(ecore_con_test_ecore_con_url_cookies_clear_session) 412EFL_START_TEST(ecore_con_test_ecore_con_url_cookies_clear_session)
413{ 413{
414 Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init(); 414 Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init();
415 Eina_Tmpstr *path; 415 Eina_Tmpstr *path;
@@ -427,9 +427,9 @@ START_TEST(ecore_con_test_ecore_con_url_cookies_clear_session)
427 427
428 _ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path); 428 _ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path);
429} 429}
430END_TEST 430EFL_END_TEST
431 431
432START_TEST(ecore_con_test_ecore_con_url_cookies_ignore_session) 432EFL_START_TEST(ecore_con_test_ecore_con_url_cookies_ignore_session)
433{ 433{
434 Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init(); 434 Ecore_Con_Url *ec_url = _ecore_con_url_cookies_test_init();
435 Eina_Tmpstr *path; 435 Eina_Tmpstr *path;
@@ -446,7 +446,7 @@ START_TEST(ecore_con_test_ecore_con_url_cookies_ignore_session)
446 446
447 _ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path); 447 _ecore_con_url_cookies_test_shutdown(ec_url, tmpfd, &path);
448} 448}
449END_TEST 449EFL_END_TEST
450 450
451void ecore_con_test_ecore_con_url(TCase *tc) 451void ecore_con_test_ecore_con_url(TCase *tc)
452{ 452{
diff --git a/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c b/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c
index 4a54c98..477b242 100644
--- a/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c
+++ b/src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c
@@ -295,7 +295,7 @@ _ipv4_check(Eo *o, const struct sockaddr_in *addr)
295 ck_assert_str_eq(efl_net_ip_address_string_get(o), buf); 295 ck_assert_str_eq(efl_net_ip_address_string_get(o), buf);
296} 296}
297 297
298START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_ok) 298EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_ok)
299{ 299{
300 struct sockaddr_in addr = { 300 struct sockaddr_in addr = {
301 .sin_family = AF_INET, 301 .sin_family = AF_INET,
@@ -333,9 +333,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_ok)
333 333
334 ecore_con_shutdown(); 334 ecore_con_shutdown();
335} 335}
336END_TEST 336EFL_END_TEST
337 337
338START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_fail) 338EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_fail)
339{ 339{
340 uint8_t c = 123; 340 uint8_t c = 123;
341 Eina_Slice wrong_slice = { .mem = &c, .len = 1 }; 341 Eina_Slice wrong_slice = { .mem = &c, .len = 1 };
@@ -421,9 +421,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_fail)
421 421
422 ecore_con_shutdown(); 422 ecore_con_shutdown();
423} 423}
424END_TEST 424EFL_END_TEST
425 425
426START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok) 426EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok)
427{ 427{
428 struct sockaddr_in addr = { 428 struct sockaddr_in addr = {
429 .sin_family = AF_INET, 429 .sin_family = AF_INET,
@@ -459,9 +459,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok)
459 459
460 ecore_con_shutdown(); 460 ecore_con_shutdown();
461} 461}
462END_TEST 462EFL_END_TEST
463 463
464START_TEST(ecore_test_efl_net_ip_address_ipv4_create_fail) 464EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_fail)
465{ 465{
466 uint8_t c = 123; 466 uint8_t c = 123;
467 Eina_Slice wrong_slice = { .mem = &c, .len = 1 }; 467 Eina_Slice wrong_slice = { .mem = &c, .len = 1 };
@@ -478,9 +478,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_create_fail)
478 478
479 ecore_con_shutdown(); 479 ecore_con_shutdown();
480} 480}
481END_TEST 481EFL_END_TEST
482 482
483START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_ok) 483EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_ok)
484{ 484{
485 struct sockaddr_in addr = { 485 struct sockaddr_in addr = {
486 .sin_family = AF_INET, 486 .sin_family = AF_INET,
@@ -505,9 +505,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_ok)
505 505
506 ecore_con_shutdown(); 506 ecore_con_shutdown();
507} 507}
508END_TEST 508EFL_END_TEST
509 509
510START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_fail) 510EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_fail)
511{ 511{
512 struct sockaddr_in addr = { 512 struct sockaddr_in addr = {
513 .sin_family = AF_UNSPEC, 513 .sin_family = AF_UNSPEC,
@@ -528,9 +528,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_fail)
528 528
529 ecore_con_shutdown(); 529 ecore_con_shutdown();
530} 530}
531END_TEST 531EFL_END_TEST
532 532
533START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_ok) 533EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_ok)
534{ 534{
535 Eo *o; 535 Eo *o;
536 536
@@ -558,9 +558,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_ok)
558 558
559 ecore_con_shutdown(); 559 ecore_con_shutdown();
560} 560}
561END_TEST 561EFL_END_TEST
562 562
563START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_fail) 563EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_fail)
564{ 564{
565 Eo *o; 565 Eo *o;
566 566
@@ -596,9 +596,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_parse_fail)
596 596
597 ecore_con_shutdown(); 597 ecore_con_shutdown();
598} 598}
599END_TEST 599EFL_END_TEST
600 600
601START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_ok) 601EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_ok)
602{ 602{
603 struct resolve_ctx ctx = { }; 603 struct resolve_ctx ctx = { };
604 604
@@ -634,9 +634,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_ok)
634 634
635 ecore_con_shutdown(); 635 ecore_con_shutdown();
636} 636}
637END_TEST 637EFL_END_TEST
638 638
639START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_fail) 639EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_fail)
640{ 640{
641 struct resolve_ctx ctx = { }; 641 struct resolve_ctx ctx = { };
642 642
@@ -664,9 +664,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_resolve_fail)
664 664
665 ecore_con_shutdown(); 665 ecore_con_shutdown();
666} 666}
667END_TEST 667EFL_END_TEST
668 668
669START_TEST(ecore_test_efl_net_ip_address_ipv4_checks) 669EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_checks)
670{ 670{
671 const struct test { 671 const struct test {
672 uint32_t addr; 672 uint32_t addr;
@@ -721,7 +721,7 @@ START_TEST(ecore_test_efl_net_ip_address_ipv4_checks)
721 721
722 ecore_con_shutdown(); 722 ecore_con_shutdown();
723} 723}
724END_TEST 724EFL_END_TEST
725 725
726/* IPv6 *****************************************************************/ 726/* IPv6 *****************************************************************/
727 727
@@ -761,7 +761,7 @@ _ipv6_set(struct sockaddr_in6 *addr, uint16_t s1, uint16_t s2, uint16_t s3, uint
761 memcpy(&addr->sin6_addr, s, 16); 761 memcpy(&addr->sin6_addr, s, 16);
762} 762}
763 763
764START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_ok) 764EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_ok)
765{ 765{
766 struct sockaddr_in6 addr = { 766 struct sockaddr_in6 addr = {
767 .sin6_family = AF_INET6, 767 .sin6_family = AF_INET6,
@@ -791,9 +791,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_ok)
791 791
792 ecore_con_shutdown(); 792 ecore_con_shutdown();
793} 793}
794END_TEST 794EFL_END_TEST
795 795
796START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_fail) 796EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_fail)
797{ 797{
798 uint8_t c = 123; 798 uint8_t c = 123;
799 Eina_Slice wrong_slice = { .mem = &c, .len = 1 }; 799 Eina_Slice wrong_slice = { .mem = &c, .len = 1 };
@@ -851,9 +851,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_fail)
851 851
852 ecore_con_shutdown(); 852 ecore_con_shutdown();
853} 853}
854END_TEST 854EFL_END_TEST
855 855
856START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok) 856EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok)
857{ 857{
858 struct sockaddr_in6 addr = { 858 struct sockaddr_in6 addr = {
859 .sin6_family = AF_INET6, 859 .sin6_family = AF_INET6,
@@ -889,9 +889,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok)
889 889
890 ecore_con_shutdown(); 890 ecore_con_shutdown();
891} 891}
892END_TEST 892EFL_END_TEST
893 893
894START_TEST(ecore_test_efl_net_ip_address_ipv6_create_sockaddr_ok) 894EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_sockaddr_ok)
895{ 895{
896 struct sockaddr_in6 addr = { 896 struct sockaddr_in6 addr = {
897 .sin6_family = AF_INET6, 897 .sin6_family = AF_INET6,
@@ -916,9 +916,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_create_sockaddr_ok)
916 916
917 ecore_con_shutdown(); 917 ecore_con_shutdown();
918} 918}
919END_TEST 919EFL_END_TEST
920 920
921START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_ok) 921EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_ok)
922{ 922{
923 Eo *o; 923 Eo *o;
924 924
@@ -1010,9 +1010,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_ok)
1010 1010
1011 ecore_con_shutdown(); 1011 ecore_con_shutdown();
1012} 1012}
1013END_TEST 1013EFL_END_TEST
1014 1014
1015START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_fail) 1015EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_fail)
1016{ 1016{
1017 Eo *o; 1017 Eo *o;
1018 1018
@@ -1039,7 +1039,7 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_parse_fail)
1039 1039
1040 ecore_con_shutdown(); 1040 ecore_con_shutdown();
1041} 1041}
1042END_TEST 1042EFL_END_TEST
1043 1043
1044static const char * 1044static const char *
1045_ipv6_localhost_check(void) 1045_ipv6_localhost_check(void)
@@ -1130,7 +1130,7 @@ _ipv6_localhost_check(void)
1130 return found; 1130 return found;
1131} 1131}
1132 1132
1133START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_ok) 1133EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_ok)
1134{ 1134{
1135 struct resolve_ctx ctx = { }; 1135 struct resolve_ctx ctx = { };
1136 char buf[4096]; 1136 char buf[4096];
@@ -1185,9 +1185,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_ok)
1185 1185
1186 ecore_con_shutdown(); 1186 ecore_con_shutdown();
1187} 1187}
1188END_TEST 1188EFL_END_TEST
1189 1189
1190START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_fail) 1190EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_fail)
1191{ 1191{
1192 struct resolve_ctx ctx = { }; 1192 struct resolve_ctx ctx = { };
1193 1193
@@ -1203,9 +1203,9 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_resolve_fail)
1203 1203
1204 ecore_con_shutdown(); 1204 ecore_con_shutdown();
1205} 1205}
1206END_TEST 1206EFL_END_TEST
1207 1207
1208START_TEST(ecore_test_efl_net_ip_address_ipv6_checks) 1208EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_checks)
1209{ 1209{
1210 const struct test { 1210 const struct test {
1211 const char *str; 1211 const char *str;
@@ -1258,7 +1258,7 @@ START_TEST(ecore_test_efl_net_ip_address_ipv6_checks)
1258 1258
1259 ecore_con_shutdown(); 1259 ecore_con_shutdown();
1260} 1260}
1261END_TEST 1261EFL_END_TEST
1262 1262
1263void ecore_con_test_efl_net_ip_address(TCase *tc) 1263void ecore_con_test_efl_net_ip_address(TCase *tc)
1264{ 1264{