1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# https://github.com/libuv/libuv/issues/1766
--- a/test/test-connect-unspecified.c
+++ b/test/test-connect-unspecified.c
@@ -48,12 +48,14 @@
(const struct sockaddr*) &addr4,
connect_4) == 0);
- ASSERT(uv_tcp_init(loop, &socket6) == 0);
- ASSERT(uv_ip6_addr("::", TEST_PORT, &addr6) == 0);
- ASSERT(uv_tcp_connect(&connect6,
- &socket6,
- (const struct sockaddr*) &addr6,
- connect_6) == 0);
+ if (can_ipv6()) {
+ ASSERT(uv_tcp_init(loop, &socket6) == 0);
+ ASSERT(uv_ip6_addr("::", TEST_PORT, &addr6) == 0);
+ ASSERT(uv_tcp_connect(&connect6,
+ &socket6,
+ (const struct sockaddr*) &addr6,
+ connect_6) == 0);
+ }
ASSERT(uv_run(loop, UV_RUN_DEFAULT) == 0);
|