Lines Matching refs:r
47 int r; in TEST_IMPL() local
49 r = uv_pipe_init(uv_default_loop(), &server1, 0); in TEST_IMPL()
50 ASSERT_OK(r); in TEST_IMPL()
51 r = uv_pipe_bind(&server1, TEST_PIPENAME); in TEST_IMPL()
52 ASSERT_OK(r); in TEST_IMPL()
54 r = uv_pipe_init(uv_default_loop(), &server2, 0); in TEST_IMPL()
55 ASSERT_OK(r); in TEST_IMPL()
56 r = uv_pipe_bind(&server2, TEST_PIPENAME); in TEST_IMPL()
57 ASSERT_EQ(r, UV_EADDRINUSE); in TEST_IMPL()
59 r = uv_listen((uv_stream_t*)&server1, SOMAXCONN, NULL); in TEST_IMPL()
60 ASSERT_OK(r); in TEST_IMPL()
61 r = uv_listen((uv_stream_t*)&server2, SOMAXCONN, NULL); in TEST_IMPL()
62 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
78 int r; in TEST_IMPL() local
80 r = uv_pipe_init(uv_default_loop(), &server, 0); in TEST_IMPL()
81 ASSERT_OK(r); in TEST_IMPL()
83 r = uv_pipe_bind(&server, BAD_PIPENAME); in TEST_IMPL()
84 ASSERT_EQ(r, UV_EACCES); in TEST_IMPL()
99 int r; in TEST_IMPL() local
101 r = uv_pipe_init(uv_default_loop(), &server, 0); in TEST_IMPL()
102 ASSERT_OK(r); in TEST_IMPL()
103 r = uv_pipe_bind(&server, TEST_PIPENAME); in TEST_IMPL()
104 ASSERT_OK(r); in TEST_IMPL()
105 r = uv_pipe_bind(&server, TEST_PIPENAME_2); in TEST_IMPL()
106 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
124 int r; in TEST_IMPL() local
126 r = uv_pipe_init(uv_default_loop(), &server, 0); in TEST_IMPL()
127 ASSERT_OK(r); in TEST_IMPL()
129 r = uv_listen((uv_stream_t*)&server, SOMAXCONN, NULL); in TEST_IMPL()
130 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()