Lines Matching refs:ASSERT
39 ASSERT(status == UV_EADDRINUSE); in connect_cb()
56 ASSERT(0 == uv_tcp_init(uv_default_loop(), &conn)); in TEST_IMPL()
57 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
58 ASSERT(0 == uv_tcp_bind(&conn, (const struct sockaddr*) &addr, 0)); in TEST_IMPL()
60 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT + 1, &addr)); in TEST_IMPL()
61 ASSERT(0 == uv_tcp_connect(&req, in TEST_IMPL()
67 ASSERT(UV_EADDRINUSE == uv_tcp_getsockname(&conn, in TEST_IMPL()
71 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL()
72 ASSERT(connect_cb_called == 1); in TEST_IMPL()
73 ASSERT(close_cb_called == 1); in TEST_IMPL()
85 ASSERT(0 == uv_ip4_addr("0.0.0.0", TEST_PORT, &addr)); in TEST_IMPL()
87 ASSERT(r == 0); in TEST_IMPL()
89 ASSERT(r == 0); in TEST_IMPL()
92 ASSERT(r == 0); in TEST_IMPL()
94 ASSERT(r == 0); in TEST_IMPL()
97 ASSERT(r == 0); in TEST_IMPL()
99 ASSERT(r == UV_EADDRINUSE); in TEST_IMPL()
106 ASSERT(close_cb_called == 2); in TEST_IMPL()
118 ASSERT(0 == uv_ip4_addr("127.255.255.255", TEST_PORT, &addr)); in TEST_IMPL()
121 ASSERT(r == 0); in TEST_IMPL()
125 ASSERT(r == 0 || r == UV_EADDRNOTAVAIL); in TEST_IMPL()
131 ASSERT(close_cb_called == 1); in TEST_IMPL()
143 ASSERT(0 == uv_ip4_addr("4.4.4.4", TEST_PORT, &addr)); in TEST_IMPL()
146 ASSERT(r == 0); in TEST_IMPL()
148 ASSERT(r == UV_EADDRNOTAVAIL); in TEST_IMPL()
154 ASSERT(close_cb_called == 1); in TEST_IMPL()
171 ASSERT(r == 0); in TEST_IMPL()
173 ASSERT(r == UV_EINVAL); in TEST_IMPL()
179 ASSERT(close_cb_called == 1); in TEST_IMPL()
193 ASSERT(0 == uv_ip4_addr("0.0.0.0", TEST_PORT, &addr1)); in TEST_IMPL()
194 ASSERT(0 == uv_ip4_addr("0.0.0.0", TEST_PORT_2, &addr2)); in TEST_IMPL()
197 ASSERT(r == 0); in TEST_IMPL()
199 ASSERT(r == 0); in TEST_IMPL()
201 ASSERT(r == UV_EINVAL); in TEST_IMPL()
207 ASSERT(close_cb_called == 1); in TEST_IMPL()
219 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
222 ASSERT(r == 0); in TEST_IMPL()
224 ASSERT(r == 0); in TEST_IMPL()
236 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL()
239 ASSERT(r == 0); in TEST_IMPL()
241 ASSERT(r == UV_EINVAL); in TEST_IMPL()
253 ASSERT(r == 0); in TEST_IMPL()
255 ASSERT(r == 0); in TEST_IMPL()
270 ASSERT(0 == uv_ip4_addr("0.0.0.0", TEST_PORT, &addr)); in TEST_IMPL()
272 ASSERT(r == 0); in TEST_IMPL()
274 ASSERT(r == 0); in TEST_IMPL()
276 ASSERT(r == 0); in TEST_IMPL()
278 ASSERT(0 == uv_is_writable((uv_stream_t*) &server)); in TEST_IMPL()
279 ASSERT(0 == uv_is_readable((uv_stream_t*) &server)); in TEST_IMPL()
283 ASSERT(r == UV_EPIPE); in TEST_IMPL()
285 ASSERT(r == UV_ENOTCONN); in TEST_IMPL()
289 ASSERT(r == UV_ENOTCONN); in TEST_IMPL()
295 ASSERT(close_cb_called == 1); in TEST_IMPL()