Lines Matching refs:r
34 int r; in TEST_IMPL() local
40 r = uv_udp_init(loop, &h1); in TEST_IMPL()
41 ASSERT_OK(r); in TEST_IMPL()
43 r = uv_udp_init(loop, &h2); in TEST_IMPL()
44 ASSERT_OK(r); in TEST_IMPL()
46 r = uv_udp_bind(&h1, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
47 ASSERT_OK(r); in TEST_IMPL()
49 r = uv_udp_bind(&h2, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
50 ASSERT_EQ(r, UV_EADDRINUSE); in TEST_IMPL()
55 r = uv_run(loop, UV_RUN_DEFAULT); in TEST_IMPL()
56 ASSERT_OK(r); in TEST_IMPL()
67 int r; in TEST_IMPL() local
73 r = uv_udp_init(loop, &h1); in TEST_IMPL()
74 ASSERT_OK(r); in TEST_IMPL()
76 r = uv_udp_init(loop, &h2); in TEST_IMPL()
77 ASSERT_OK(r); in TEST_IMPL()
79 r = uv_udp_bind(&h1, (const struct sockaddr*) &addr, UV_UDP_REUSEADDR); in TEST_IMPL()
80 ASSERT_OK(r); in TEST_IMPL()
82 r = uv_udp_bind(&h2, (const struct sockaddr*) &addr, UV_UDP_REUSEADDR); in TEST_IMPL()
83 ASSERT_OK(r); in TEST_IMPL()
88 r = uv_run(loop, UV_RUN_DEFAULT); in TEST_IMPL()
89 ASSERT_OK(r); in TEST_IMPL()