summaryrefslogtreecommitdiff
path: root/auto_tests/network_test.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-06-24 12:41:26 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-06-24 19:51:34 +0000
commit5c2600d87bd000b32b2a37c5a74275912ddd5328 (patch)
tree82ddac9827ff05735bdf7b8a24531333a3c611db /auto_tests/network_test.c
parent8e00294b3cb9808ce55160240454359638178275 (diff)
Add new Circle CI configuration.
This one has ASAN enabled, unlike Travis.
Diffstat (limited to 'auto_tests/network_test.c')
-rw-r--r--auto_tests/network_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/auto_tests/network_test.c b/auto_tests/network_test.c
index 0abd14a4..f9de94f9 100644
--- a/auto_tests/network_test.c
+++ b/auto_tests/network_test.c
@@ -93,7 +93,8 @@ START_TEST(test_addr_resolv_localhost)
93 extra.family.value); 93 extra.family.value);
94 ck_assert_msg(extra.ip.v4.uint32 == loopback, "Expected 127.0.0.1, got %s.", 94 ck_assert_msg(extra.ip.v4.uint32 == loopback, "Expected 127.0.0.1, got %s.",
95 ip_ntoa(&ip, ip_str, sizeof(ip_str))); 95 ip_ntoa(&ip, ip_str, sizeof(ip_str)));
96#else 96#elif 0
97 // TODO(iphydf): Fix this to work on IPv6-supporting systems.
97 ck_assert_msg(net_family_is_ipv4(ip.family), "Expected family TOX_AF_INET (%d), got %u.", TOX_AF_INET, ip.family.value); 98 ck_assert_msg(net_family_is_ipv4(ip.family), "Expected family TOX_AF_INET (%d), got %u.", TOX_AF_INET, ip.family.value);
98 ck_assert_msg(ip.ip.v4.uint32 == loopback, "Expected 127.0.0.1, got %s.", 99 ck_assert_msg(ip.ip.v4.uint32 == loopback, "Expected 127.0.0.1, got %s.",
99 ip_ntoa(&ip, ip_str, sizeof(ip_str))); 100 ip_ntoa(&ip, ip_str, sizeof(ip_str)));