Lines Matching refs:ASSERT
59 ASSERT((fp = fopen(FIXTURE, "w+"))); in touch_file()
88 ASSERT(0 && "fail_cb called"); in poll_cb_fail()
106 ASSERT(handle == &poll_handle); in poll_cb()
107 ASSERT(1 == uv_is_active((uv_handle_t*) handle)); in poll_cb()
113 ASSERT(status == UV_ENOENT); in poll_cb()
114 ASSERT(0 == memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
115 ASSERT(0 == memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
120 ASSERT(status == 0); in poll_cb()
121 ASSERT(0 == memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
122 ASSERT(0 != memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
123 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 20, 0)); in poll_cb()
127 ASSERT(status == 0); in poll_cb()
128 ASSERT(0 != memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
129 ASSERT(0 != memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
130 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 200, 0)); in poll_cb()
134 ASSERT(status == 0); in poll_cb()
135 ASSERT(0 != memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
136 ASSERT(0 != memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
141 ASSERT(status == UV_ENOENT); in poll_cb()
142 ASSERT(0 != memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
143 ASSERT(0 == memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb()
148 ASSERT(0); in poll_cb()
158 ASSERT(0 == uv_timer_init(loop, &timer_handle)); in TEST_IMPL()
159 ASSERT(0 == uv_fs_poll_init(loop, &poll_handle)); in TEST_IMPL()
160 ASSERT(0 == uv_fs_poll_start(&poll_handle, poll_cb, FIXTURE, 100)); in TEST_IMPL()
161 ASSERT(0 == uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
163 ASSERT(poll_cb_called == 5); in TEST_IMPL()
164 ASSERT(timer_cb_called == 2); in TEST_IMPL()
165 ASSERT(close_cb_called == 1); in TEST_IMPL()
179 ASSERT(0 == uv_fs_poll_init(loop, &poll_handle)); in TEST_IMPL()
181 ASSERT(UV_EINVAL == uv_fs_poll_getpath(&poll_handle, buf, &len)); in TEST_IMPL()
182 ASSERT(0 == uv_fs_poll_start(&poll_handle, poll_cb_fail, FIXTURE, 100)); in TEST_IMPL()
184 ASSERT(0 == uv_fs_poll_getpath(&poll_handle, buf, &len)); in TEST_IMPL()
185 ASSERT(buf[len - 1] != 0); in TEST_IMPL()
186 ASSERT(buf[len] == '\0'); in TEST_IMPL()
187 ASSERT(0 == memcmp(buf, FIXTURE, len)); in TEST_IMPL()
191 ASSERT(0 == uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
193 ASSERT(close_cb_called == 1); in TEST_IMPL()
206 ASSERT(0 == uv_loop_init(&loop)); in TEST_IMPL()
208 ASSERT(0 == uv_fs_poll_init(&loop, &poll_handle)); in TEST_IMPL()
209 ASSERT(0 == uv_fs_poll_start(&poll_handle, poll_cb_fail, FIXTURE, 100)); in TEST_IMPL()
213 ASSERT(close_cb_called == 1); in TEST_IMPL()
215 ASSERT(0 == uv_loop_close(&loop)); in TEST_IMPL()
228 ASSERT(0 == uv_loop_init(&loop)); in TEST_IMPL()
230 ASSERT(0 == uv_fs_poll_init(&loop, &poll_handle)); in TEST_IMPL()
233 ASSERT(0 == uv_fs_poll_start(&poll_handle, poll_cb_fail, FIXTURE, 100)); in TEST_IMPL()
234 ASSERT(0 == uv_fs_poll_stop(&poll_handle)); in TEST_IMPL()
239 ASSERT(close_cb_called == 1); in TEST_IMPL()
241 ASSERT(0 == uv_loop_close(&loop)); in TEST_IMPL()
254 ASSERT(0 == uv_loop_init(&loop)); in TEST_IMPL()
256 ASSERT(0 == uv_fs_poll_init(&loop, &poll_handle)); in TEST_IMPL()
259 ASSERT(0 == uv_fs_poll_stop(&poll_handle)); in TEST_IMPL()
260 ASSERT(0 == uv_fs_poll_start(&poll_handle, poll_cb_fail, FIXTURE, 100)); in TEST_IMPL()
265 ASSERT(close_cb_called == 1); in TEST_IMPL()
267 ASSERT(0 == uv_loop_close(&loop)); in TEST_IMPL()
280 ASSERT(0 == uv_loop_init(&loop)); in TEST_IMPL()
283 ASSERT(0 == uv_fs_poll_init(&loop, &poll_handle)); in TEST_IMPL()
284 ASSERT(0 == uv_fs_poll_start(&poll_handle, poll_cb_noop, FIXTURE, 100)); in TEST_IMPL()
288 ASSERT(0 == uv_fs_poll_stop(&poll_handle)); in TEST_IMPL()
294 ASSERT(close_cb_called == 1); in TEST_IMPL()
296 ASSERT(0 == uv_loop_close(&loop)); in TEST_IMPL()