Lines Matching refs:r
40 int r; in TEST_IMPL() local
47 r = uv_tcp_init(uv_default_loop(), &server1); in TEST_IMPL()
48 ASSERT_OK(r); in TEST_IMPL()
49 r = uv_tcp_bind(&server1, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
50 ASSERT_OK(r); in TEST_IMPL()
52 r = uv_tcp_init(uv_default_loop(), &server2); in TEST_IMPL()
53 ASSERT_OK(r); in TEST_IMPL()
54 r = uv_tcp_bind(&server2, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
55 ASSERT_OK(r); in TEST_IMPL()
57 r = uv_listen((uv_stream_t*)&server1, 128, NULL); in TEST_IMPL()
58 ASSERT_OK(r); in TEST_IMPL()
59 r = uv_listen((uv_stream_t*)&server2, 128, NULL); in TEST_IMPL()
60 ASSERT_EQ(r, UV_EADDRINUSE); in TEST_IMPL()
77 int r; in TEST_IMPL() local
84 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
85 ASSERT_OK(r); in TEST_IMPL()
86 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
87 ASSERT_EQ(r, UV_EADDRNOTAVAIL); in TEST_IMPL()
105 int r; in TEST_IMPL() local
112 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
113 ASSERT_OK(r); in TEST_IMPL()
114 r = uv_tcp_bind(&server, (const struct sockaddr*) garbage_addr, 0); in TEST_IMPL()
115 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
133 int r; in TEST_IMPL() local
141 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
142 ASSERT_OK(r); in TEST_IMPL()
143 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr1, 0); in TEST_IMPL()
144 ASSERT_OK(r); in TEST_IMPL()
145 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr2, 0); in TEST_IMPL()
146 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
162 int r; in TEST_IMPL() local
169 r = uv_tcp_init(uv_default_loop(), &server); in TEST_IMPL()
170 ASSERT_OK(r); in TEST_IMPL()
171 r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
172 ASSERT_OK(r); in TEST_IMPL()