Lines Matching refs:r

47   int r;  in TEST_IMPL()  local
61 r = uv_idle_init(loop, &idle); in TEST_IMPL()
62 ASSERT_OK(r); in TEST_IMPL()
63 r = uv_fileno((uv_handle_t*) &idle, &fd); in TEST_IMPL()
64 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
67 r = uv_tcp_init(loop, &tcp); in TEST_IMPL()
68 ASSERT_OK(r); in TEST_IMPL()
69 r = uv_fileno((uv_handle_t*) &tcp, &fd); in TEST_IMPL()
70 ASSERT_EQ(r, UV_EBADF); in TEST_IMPL()
71 r = uv_tcp_bind(&tcp, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
72 ASSERT_OK(r); in TEST_IMPL()
73 r = uv_fileno((uv_handle_t*) &tcp, &fd); in TEST_IMPL()
74 ASSERT_OK(r); in TEST_IMPL()
76 r = uv_fileno((uv_handle_t*) &tcp, &fd); in TEST_IMPL()
77 ASSERT_EQ(r, UV_EBADF); in TEST_IMPL()
79 r = uv_udp_init(loop, &udp); in TEST_IMPL()
80 ASSERT_OK(r); in TEST_IMPL()
81 r = uv_fileno((uv_handle_t*) &udp, &fd); in TEST_IMPL()
82 ASSERT_EQ(r, UV_EBADF); in TEST_IMPL()
83 r = uv_udp_bind(&udp, (const struct sockaddr*) &addr, 0); in TEST_IMPL()
84 ASSERT_OK(r); in TEST_IMPL()
85 r = uv_fileno((uv_handle_t*) &udp, &fd); in TEST_IMPL()
86 ASSERT_OK(r); in TEST_IMPL()
88 r = uv_fileno((uv_handle_t*) &udp, &fd); in TEST_IMPL()
89 ASSERT_EQ(r, UV_EBADF); in TEST_IMPL()
91 r = uv_pipe_init(loop, &pipe, 0); in TEST_IMPL()
92 ASSERT_OK(r); in TEST_IMPL()
93 r = uv_fileno((uv_handle_t*) &pipe, &fd); in TEST_IMPL()
94 ASSERT_EQ(r, UV_EBADF); in TEST_IMPL()
95 r = uv_pipe_bind(&pipe, TEST_PIPENAME); in TEST_IMPL()
96 ASSERT_OK(r); in TEST_IMPL()
97 r = uv_fileno((uv_handle_t*) &pipe, &fd); in TEST_IMPL()
98 ASSERT_OK(r); in TEST_IMPL()
100 r = uv_fileno((uv_handle_t*) &pipe, &fd); in TEST_IMPL()
101 ASSERT_EQ(r, UV_EBADF); in TEST_IMPL()
108 r = uv_tty_init(loop, &tty, tty_fd, 0); in TEST_IMPL()
109 ASSERT_OK(r); in TEST_IMPL()
112 r = uv_fileno((uv_handle_t*) &tty, &fd); in TEST_IMPL()
113 ASSERT_OK(r); in TEST_IMPL()
115 r = uv_fileno((uv_handle_t*) &tty, &fd); in TEST_IMPL()
116 ASSERT_EQ(r, UV_EBADF); in TEST_IMPL()