Lines Matching refs:result
67 ASSERT(rmdir_req.result == 0 || rmdir_req.result == UV_ENOENT); in setup()
72 ASSERT_OK(mkdir_req.result); in setup()
84 ASSERT(unlink_req.result == 0 || unlink_req.result == UV_ENOENT); in refresh()
93 ASSERT_GE(open_req.result, 0); in refresh()
96 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in refresh()
98 ASSERT_OK(close_req.result); in refresh()
107 ASSERT_GE(open_req.result, 0); in refresh()
111 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in refresh()
113 ASSERT_EQ(1, write_req.result); in refresh()
116 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in refresh()
118 ASSERT_OK(close_req.result); in refresh()
135 ASSERT_EQ(open_req.result, error); in openFail()
141 ASSERT_EQ(open_req.result, error); in openFail()
154 ASSERT_GE(open_req.result, 0); in refreshOpen()
164 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in writeExpect()
166 ASSERT_EQ(1, write_req.result); in writeExpect()
170 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in writeExpect()
172 ASSERT_EQ(1, write_req.result); in writeExpect()
175 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in writeExpect()
177 ASSERT_OK(close_req.result); in writeExpect()
183 ASSERT_GE(open_req.result, 0); in writeExpect()
187 r = uv_fs_read(NULL, &read_req, open_req.result, &iov, 1, -1, NULL); in writeExpect()
189 ASSERT_EQ(read_req.result, size); in writeExpect()
193 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in writeExpect()
195 ASSERT_OK(close_req.result); in writeExpect()
207 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in writeFail()
209 ASSERT_EQ(write_req.result, error); in writeFail()
213 r = uv_fs_write(NULL, &write_req, open_req.result, &iov, 1, -1, NULL); in writeFail()
215 ASSERT_EQ(write_req.result, error); in writeFail()
218 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in writeFail()
220 ASSERT_OK(close_req.result); in writeFail()
232 r = uv_fs_read(NULL, &read_req, open_req.result, &iov, 1, -1, NULL); in readExpect()
234 ASSERT_EQ(read_req.result, size); in readExpect()
238 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in readExpect()
240 ASSERT_OK(close_req.result); in readExpect()
252 r = uv_fs_read(NULL, &read_req, open_req.result, &iov, 1, -1, NULL); in readFail()
254 ASSERT_EQ(read_req.result, error); in readFail()
258 r = uv_fs_read(NULL, &read_req, open_req.result, &iov, 1, -1, NULL); in readFail()
260 ASSERT_EQ(read_req.result, error); in readFail()
263 r = uv_fs_close(NULL, &close_req, open_req.result, NULL); in readFail()
265 ASSERT_OK(close_req.result); in readFail()