summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-02-01 11:04:17 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-02-01 14:25:35 +0000
commitf7c560c311d0ba0da94346e17c8b20f40a0ed152 (patch)
treeaf5f63aceb78ff1b153f3727f8adab6ee4e1d653 /src/tests/ecore_con
parent36286a23fe97e3667c1106116d1edbc301c7a9ba (diff)
replace hton and ntoh family functions with ones defined in eina
Summary: This fixes especially the execution of edje_cc on Windows Test Plan: execution of edje_cc Reviewers: cedric, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7834
Diffstat (limited to 'src/tests/ecore_con')
-rw-r--r--src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c94
1 files changed, 47 insertions, 47 deletions
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 5551508..1a150ff 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
@@ -5,7 +5,7 @@
5#include <stdio.h> 5#include <stdio.h>
6 6
7#ifdef HAVE_SYS_SOCKET_H 7#ifdef HAVE_SYS_SOCKET_H
8#include <sys/socket.h> 8# include <sys/socket.h>
9#endif 9#endif
10 10
11#include <Ecore.h> 11#include <Ecore.h>
@@ -256,7 +256,7 @@ _ipv4_check(Eo *o, const struct sockaddr_in *addr)
256 ck_assert_ptr_ne(o, NULL); 256 ck_assert_ptr_ne(o, NULL);
257 257
258 ck_assert_int_eq(efl_net_ip_address_family_get(o), AF_INET); 258 ck_assert_int_eq(efl_net_ip_address_family_get(o), AF_INET);
259 ck_assert_int_eq(efl_net_ip_address_port_get(o), ntohs(addr->sin_port)); 259 ck_assert_int_eq(efl_net_ip_address_port_get(o), eina_ntohs(addr->sin_port));
260 260
261 rs = efl_net_ip_address_get(o); 261 rs = efl_net_ip_address_get(o);
262 ck_assert_int_eq(eina_slice_compare(rs, slice), 0); 262 ck_assert_int_eq(eina_slice_compare(rs, slice), 0);
@@ -266,7 +266,7 @@ _ipv4_check(Eo *o, const struct sockaddr_in *addr)
266 if (addr->sin_port) 266 if (addr->sin_port)
267 { 267 {
268 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), 268 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
269 ":%hu", htons(addr->sin_port)); 269 ":%hu", eina_htons(addr->sin_port));
270 } 270 }
271 ck_assert_ptr_ne(efl_net_ip_address_string_get(o), NULL); 271 ck_assert_ptr_ne(efl_net_ip_address_string_get(o), NULL);
272 ck_assert_str_eq(efl_net_ip_address_string_get(o), buf); 272 ck_assert_str_eq(efl_net_ip_address_string_get(o), buf);
@@ -280,26 +280,26 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_ok)
280 Eina_Slice slice = { .mem = &addr.sin_addr, .len = sizeof(addr.sin_addr) }; 280 Eina_Slice slice = { .mem = &addr.sin_addr, .len = sizeof(addr.sin_addr) };
281 Eo *o; 281 Eo *o;
282 282
283 addr.sin_port = htons(12345); 283 addr.sin_port = eina_htons(12345);
284 addr.sin_addr.s_addr = htonl(0xabcdefafU); 284 addr.sin_addr.s_addr = eina_htonl(0xabcdefafU);
285 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL, 285 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL,
286 efl_net_ip_address_family_set(efl_added, AF_INET), 286 efl_net_ip_address_family_set(efl_added, AF_INET),
287 efl_net_ip_address_port_set(efl_added, ntohs(addr.sin_port)), 287 efl_net_ip_address_port_set(efl_added, eina_ntohs(addr.sin_port)),
288 efl_net_ip_address_set(efl_added, slice)); 288 efl_net_ip_address_set(efl_added, slice));
289 _ipv4_check(o, &addr); 289 _ipv4_check(o, &addr);
290 efl_unref(o); 290 efl_unref(o);
291 291
292 addr.sin_port = htons(8081); 292 addr.sin_port = eina_htons(8081);
293 addr.sin_addr.s_addr = htonl(0); 293 addr.sin_addr.s_addr = eina_htonl(0);
294 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL, 294 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL,
295 efl_net_ip_address_family_set(efl_added, AF_INET), 295 efl_net_ip_address_family_set(efl_added, AF_INET),
296 efl_net_ip_address_port_set(efl_added, ntohs(addr.sin_port)), 296 efl_net_ip_address_port_set(efl_added, eina_ntohs(addr.sin_port)),
297 efl_net_ip_address_set(efl_added, slice)); 297 efl_net_ip_address_set(efl_added, slice));
298 _ipv4_check(o, &addr); 298 _ipv4_check(o, &addr);
299 efl_unref(o); 299 efl_unref(o);
300 300
301 addr.sin_port = htons(0); 301 addr.sin_port = eina_htons(0);
302 addr.sin_addr.s_addr = htonl(0x12345678); 302 addr.sin_addr.s_addr = eina_htonl(0x12345678);
303 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL, 303 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL,
304 efl_net_ip_address_family_set(efl_added, AF_INET), 304 efl_net_ip_address_family_set(efl_added, AF_INET),
305 efl_net_ip_address_set(efl_added, slice)); 305 efl_net_ip_address_set(efl_added, slice));
@@ -356,16 +356,16 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_fail)
356 efl_unref(o); 356 efl_unref(o);
357 TRAP_ERRORS_FINISH(1); 357 TRAP_ERRORS_FINISH(1);
358 358
359 addr.sin_port = htons(12345); 359 addr.sin_port = eina_htons(12345);
360 addr.sin_addr.s_addr = htonl(0xabcdefafU); 360 addr.sin_addr.s_addr = eina_htonl(0xabcdefafU);
361 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL, 361 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL,
362 efl_net_ip_address_family_set(efl_added, AF_INET), 362 efl_net_ip_address_family_set(efl_added, AF_INET),
363 efl_net_ip_address_port_set(efl_added, ntohs(addr.sin_port)), 363 efl_net_ip_address_port_set(efl_added, eina_ntohs(addr.sin_port)),
364 efl_net_ip_address_set(efl_added, slice)); 364 efl_net_ip_address_set(efl_added, slice));
365 _ipv4_check(o, &addr); 365 _ipv4_check(o, &addr);
366 366
367 TRAP_ERRORS_BEGIN(ecore_con, ERR, "port already set to %hu, new %hu"); 367 TRAP_ERRORS_BEGIN(ecore_con, ERR, "port already set to %hu, new %hu");
368 efl_net_ip_address_port_set(o, ntohs(addr.sin_port)); 368 efl_net_ip_address_port_set(o, eina_ntohs(addr.sin_port));
369 TRAP_ERRORS_FINISH(0); 369 TRAP_ERRORS_FINISH(0);
370 370
371 TRAP_ERRORS_BEGIN(ecore_con, ERR, "port already set to %hu, new %hu"); 371 TRAP_ERRORS_BEGIN(ecore_con, ERR, "port already set to %hu, new %hu");
@@ -383,7 +383,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_manual_fail)
383 TRAP_ERRORS_FINISH(0); 383 TRAP_ERRORS_FINISH(0);
384 384
385 TRAP_ERRORS_BEGIN(ecore_con, ERR, "address already set to %s, new %s"); 385 TRAP_ERRORS_BEGIN(ecore_con, ERR, "address already set to %s, new %s");
386 addr.sin_addr.s_addr = htonl(0x12345678); 386 addr.sin_addr.s_addr = eina_htonl(0x12345678);
387 slice.len = sizeof(addr.sin_addr.s_addr); 387 slice.len = sizeof(addr.sin_addr.s_addr);
388 efl_net_ip_address_set(o, slice); 388 efl_net_ip_address_set(o, slice);
389 TRAP_ERRORS_FINISH(1); 389 TRAP_ERRORS_FINISH(1);
@@ -400,26 +400,26 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_ok)
400 Eina_Slice slice = { .mem = &addr.sin_addr, .len = sizeof(addr.sin_addr) }; 400 Eina_Slice slice = { .mem = &addr.sin_addr, .len = sizeof(addr.sin_addr) };
401 Eo *o; 401 Eo *o;
402 402
403 addr.sin_port = htons(12345); 403 addr.sin_port = eina_htons(12345);
404 addr.sin_addr.s_addr = htonl(0xabcdefafU); 404 addr.sin_addr.s_addr = eina_htonl(0xabcdefafU);
405 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS, 405 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
406 ntohs(addr.sin_port), 406 eina_ntohs(addr.sin_port),
407 slice); 407 slice);
408 _ipv4_check(o, &addr); 408 _ipv4_check(o, &addr);
409 efl_unref(o); 409 efl_unref(o);
410 410
411 addr.sin_port = htons(8081); 411 addr.sin_port = eina_htons(8081);
412 addr.sin_addr.s_addr = htonl(0); 412 addr.sin_addr.s_addr = eina_htonl(0);
413 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS, 413 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
414 ntohs(addr.sin_port), 414 eina_ntohs(addr.sin_port),
415 slice); 415 slice);
416 _ipv4_check(o, &addr); 416 _ipv4_check(o, &addr);
417 efl_unref(o); 417 efl_unref(o);
418 418
419 addr.sin_port = htons(0); 419 addr.sin_port = eina_htons(0);
420 addr.sin_addr.s_addr = htonl(0x12345678); 420 addr.sin_addr.s_addr = eina_htonl(0x12345678);
421 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS, 421 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
422 ntohs(addr.sin_port), 422 eina_ntohs(addr.sin_port),
423 slice); 423 slice);
424 _ipv4_check(o, &addr); 424 _ipv4_check(o, &addr);
425 efl_unref(o); 425 efl_unref(o);
@@ -450,15 +450,15 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_create_sockaddr_ok)
450 }; 450 };
451 Eo *o; 451 Eo *o;
452 452
453 addr.sin_port = htons(12345); 453 addr.sin_port = eina_htons(12345);
454 addr.sin_addr.s_addr = htonl(0xabcdefafU); 454 addr.sin_addr.s_addr = eina_htonl(0xabcdefafU);
455 o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr); 455 o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr);
456 ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o)); 456 ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o));
457 _ipv4_check(o, &addr); 457 _ipv4_check(o, &addr);
458 efl_unref(o); 458 efl_unref(o);
459 459
460 addr.sin_port = htons(0); 460 addr.sin_port = eina_htons(0);
461 addr.sin_addr.s_addr = htonl(0); 461 addr.sin_addr.s_addr = eina_htonl(0);
462 o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr); 462 o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr);
463 ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o)); 463 ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o));
464 _ipv4_check(o, &addr); 464 _ipv4_check(o, &addr);
@@ -641,7 +641,7 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv4_checks)
641 struct sockaddr_in a = { 641 struct sockaddr_in a = {
642 .sin_family = AF_INET, 642 .sin_family = AF_INET,
643 .sin_port = 0, 643 .sin_port = 0,
644 .sin_addr.s_addr = htonl(itr->addr), 644 .sin_addr.s_addr = eina_htonl(itr->addr),
645 }; 645 };
646 Eo *o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &a); 646 Eo *o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &a);
647 ck_assert_ptr_ne(o, NULL); 647 ck_assert_ptr_ne(o, NULL);
@@ -677,7 +677,7 @@ _ipv6_check(Eo *o, const struct sockaddr_in6 *addr)
677 ck_assert_ptr_ne(o, NULL); 677 ck_assert_ptr_ne(o, NULL);
678 678
679 ck_assert_int_eq(efl_net_ip_address_family_get(o), AF_INET6); 679 ck_assert_int_eq(efl_net_ip_address_family_get(o), AF_INET6);
680 ck_assert_int_eq(efl_net_ip_address_port_get(o), ntohs(addr->sin6_port)); 680 ck_assert_int_eq(efl_net_ip_address_port_get(o), eina_ntohs(addr->sin6_port));
681 681
682 rs = efl_net_ip_address_get(o); 682 rs = efl_net_ip_address_get(o);
683 ck_assert_int_eq(eina_slice_compare(rs, slice), 0); 683 ck_assert_int_eq(eina_slice_compare(rs, slice), 0);
@@ -689,7 +689,7 @@ _ipv6_check(Eo *o, const struct sockaddr_in6 *addr)
689 if (addr->sin6_port) 689 if (addr->sin6_port)
690 { 690 {
691 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), 691 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
692 ":%hu", htons(addr->sin6_port)); 692 ":%hu", eina_htons(addr->sin6_port));
693 } 693 }
694 694
695 ck_assert_ptr_ne(efl_net_ip_address_string_get(o), NULL); 695 ck_assert_ptr_ne(efl_net_ip_address_string_get(o), NULL);
@@ -711,20 +711,20 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_ok)
711 Eina_Slice slice = { .mem = &addr.sin6_addr, .len = sizeof(addr.sin6_addr) }; 711 Eina_Slice slice = { .mem = &addr.sin6_addr, .len = sizeof(addr.sin6_addr) };
712 Eo *o; 712 Eo *o;
713 713
714 addr.sin6_port = htons(12345); 714 addr.sin6_port = eina_htons(12345);
715 _ipv6_set(&addr, 1, 2, 3, 4, 5, 6, 7, 8); 715 _ipv6_set(&addr, 1, 2, 3, 4, 5, 6, 7, 8);
716 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL, 716 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL,
717 efl_net_ip_address_family_set(efl_added, AF_INET6), 717 efl_net_ip_address_family_set(efl_added, AF_INET6),
718 efl_net_ip_address_port_set(efl_added, ntohs(addr.sin6_port)), 718 efl_net_ip_address_port_set(efl_added, eina_ntohs(addr.sin6_port)),
719 efl_net_ip_address_set(efl_added, slice)); 719 efl_net_ip_address_set(efl_added, slice));
720 _ipv6_check(o, &addr); 720 _ipv6_check(o, &addr);
721 efl_unref(o); 721 efl_unref(o);
722 722
723 addr.sin6_port = htons(8081); 723 addr.sin6_port = eina_htons(8081);
724 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 0); 724 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 0);
725 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL, 725 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL,
726 efl_net_ip_address_family_set(efl_added, AF_INET6), 726 efl_net_ip_address_family_set(efl_added, AF_INET6),
727 efl_net_ip_address_port_set(efl_added, ntohs(addr.sin6_port)), 727 efl_net_ip_address_port_set(efl_added, eina_ntohs(addr.sin6_port)),
728 efl_net_ip_address_set(efl_added, slice)); 728 efl_net_ip_address_set(efl_added, slice));
729 _ipv6_check(o, &addr); 729 _ipv6_check(o, &addr);
730 efl_unref(o); 730 efl_unref(o);
@@ -752,16 +752,16 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_manual_fail)
752 efl_unref(o); 752 efl_unref(o);
753 TRAP_ERRORS_FINISH(1); 753 TRAP_ERRORS_FINISH(1);
754 754
755 addr.sin6_port = htons(12345); 755 addr.sin6_port = eina_htons(12345);
756 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 1); 756 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 1);
757 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL, 757 o = efl_add_ref(EFL_NET_IP_ADDRESS_CLASS, NULL,
758 efl_net_ip_address_family_set(efl_added, AF_INET6), 758 efl_net_ip_address_family_set(efl_added, AF_INET6),
759 efl_net_ip_address_port_set(efl_added, ntohs(addr.sin6_port)), 759 efl_net_ip_address_port_set(efl_added, eina_ntohs(addr.sin6_port)),
760 efl_net_ip_address_set(efl_added, slice)); 760 efl_net_ip_address_set(efl_added, slice));
761 _ipv6_check(o, &addr); 761 _ipv6_check(o, &addr);
762 762
763 TRAP_ERRORS_BEGIN(ecore_con, ERR, "port already set to %hu, new %hu"); 763 TRAP_ERRORS_BEGIN(ecore_con, ERR, "port already set to %hu, new %hu");
764 efl_net_ip_address_port_set(o, ntohs(addr.sin6_port)); 764 efl_net_ip_address_port_set(o, eina_ntohs(addr.sin6_port));
765 TRAP_ERRORS_FINISH(0); 765 TRAP_ERRORS_FINISH(0);
766 766
767 TRAP_ERRORS_BEGIN(ecore_con, ERR, "port already set to %hu, new %hu"); 767 TRAP_ERRORS_BEGIN(ecore_con, ERR, "port already set to %hu, new %hu");
@@ -797,26 +797,26 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_ok)
797 Eina_Slice slice = { .mem = &addr.sin6_addr, .len = sizeof(addr.sin6_addr) }; 797 Eina_Slice slice = { .mem = &addr.sin6_addr, .len = sizeof(addr.sin6_addr) };
798 Eo *o; 798 Eo *o;
799 799
800 addr.sin6_port = htons(12365); 800 addr.sin6_port = eina_htons(12365);
801 _ipv6_set(&addr, 1, 2, 3, 4, 5, 6, 7, 8); 801 _ipv6_set(&addr, 1, 2, 3, 4, 5, 6, 7, 8);
802 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS, 802 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
803 ntohs(addr.sin6_port), 803 eina_ntohs(addr.sin6_port),
804 slice); 804 slice);
805 _ipv6_check(o, &addr); 805 _ipv6_check(o, &addr);
806 efl_unref(o); 806 efl_unref(o);
807 807
808 addr.sin6_port = htons(8081); 808 addr.sin6_port = eina_htons(8081);
809 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 0); 809 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 0);
810 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS, 810 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
811 ntohs(addr.sin6_port), 811 eina_ntohs(addr.sin6_port),
812 slice); 812 slice);
813 _ipv6_check(o, &addr); 813 _ipv6_check(o, &addr);
814 efl_unref(o); 814 efl_unref(o);
815 815
816 addr.sin6_port = htons(0); 816 addr.sin6_port = eina_htons(0);
817 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 1); 817 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 1);
818 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS, 818 o = efl_net_ip_address_create(EFL_NET_IP_ADDRESS_CLASS,
819 ntohs(addr.sin6_port), 819 eina_ntohs(addr.sin6_port),
820 slice); 820 slice);
821 _ipv6_check(o, &addr); 821 _ipv6_check(o, &addr);
822 efl_unref(o); 822 efl_unref(o);
@@ -831,14 +831,14 @@ EFL_START_TEST(ecore_test_efl_net_ip_address_ipv6_create_sockaddr_ok)
831 }; 831 };
832 Eo *o; 832 Eo *o;
833 833
834 addr.sin6_port = htons(12345); 834 addr.sin6_port = eina_htons(12345);
835 _ipv6_set(&addr, 1, 2, 3, 4, 5, 6, 7, 8); 835 _ipv6_set(&addr, 1, 2, 3, 4, 5, 6, 7, 8);
836 o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr); 836 o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr);
837 ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o)); 837 ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o));
838 _ipv6_check(o, &addr); 838 _ipv6_check(o, &addr);
839 efl_unref(o); 839 efl_unref(o);
840 840
841 addr.sin6_port = htons(0); 841 addr.sin6_port = eina_htons(0);
842 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 0); 842 _ipv6_set(&addr, 0, 0, 0, 0, 0, 0, 0, 0);
843 o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr); 843 o = efl_net_ip_address_create_sockaddr(EFL_NET_IP_ADDRESS_CLASS, &addr);
844 ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o)); 844 ck_assert_ptr_ne(&addr, efl_net_ip_address_sockaddr_get(o));