Lines Matching refs:test_buf
121 static char test_buf[] = "test-buffer\n"; variable
281 ASSERT(s->st_size == sizeof(test_buf)); in fstat_cb()
357 ASSERT(strcmp(buf, test_buf) == 0); in read_cb()
443 iov = uv_buf_init(test_buf, sizeof(test_buf)); in create_cb()
935 iov = uv_buf_init(test_buf, sizeof(test_buf)); in fs_file_sync()
955 ASSERT(strcmp(buf, test_buf) == 0); in fs_file_sync()
1296 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1298 ASSERT(r == sizeof(test_buf)); in TEST_IMPL()
1299 ASSERT(req.result == sizeof(test_buf)); in TEST_IMPL()
1317 ASSERT(strcmp(buf, test_buf) == 0); in TEST_IMPL()
1373 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1375 ASSERT(r == sizeof(test_buf)); in TEST_IMPL()
1376 ASSERT(req.result == sizeof(test_buf)); in TEST_IMPL()
1384 ASSERT(s->st_size == sizeof(test_buf)); in TEST_IMPL()
1582 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1584 ASSERT(r == sizeof(test_buf)); in TEST_IMPL()
1585 ASSERT(req.result == sizeof(test_buf)); in TEST_IMPL()
1684 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1686 ASSERT(r == sizeof(test_buf)); in TEST_IMPL()
1687 ASSERT(req.result == sizeof(test_buf)); in TEST_IMPL()
1743 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1745 ASSERT(r == sizeof(test_buf)); in TEST_IMPL()
1746 ASSERT(req.result == sizeof(test_buf)); in TEST_IMPL()
1800 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1802 ASSERT(r == sizeof(test_buf)); in TEST_IMPL()
1803 ASSERT(req.result == sizeof(test_buf)); in TEST_IMPL()
1825 ASSERT(strcmp(buf, test_buf) == 0); in TEST_IMPL()
1846 ASSERT(strcmp(buf, test_buf) == 0); in TEST_IMPL()
1949 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
1951 ASSERT(r == sizeof(test_buf)); in TEST_IMPL()
1952 ASSERT(req.result == sizeof(test_buf)); in TEST_IMPL()
1991 ASSERT(strcmp(buf, test_buf) == 0); in TEST_IMPL()
2053 ASSERT(strcmp(buf, test_buf) == 0); in TEST_IMPL()
2824 iov = uv_buf_init(test_buf, sizeof(test_buf)); in fs_file_open_append()
2841 iov = uv_buf_init(test_buf, sizeof(test_buf)); in fs_file_open_append()
2900 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
2937 ASSERT(strcmp(buf, test_buf) == 0); in TEST_IMPL()
3029 iov = uv_buf_init(test_buf, sizeof(test_buf)); in fs_read_file_eof()
3051 ASSERT(strcmp(buf, test_buf) == 0); in fs_read_file_eof()
3093 iovs[0] = uv_buf_init(test_buf, sizeof(test_buf)); in fs_write_multiple_bufs()
3114 iovs[0] = uv_buf_init(buf, sizeof(test_buf)); in fs_write_multiple_bufs()
3119 ASSERT(read_req.result == sizeof(test_buf) + sizeof(test_buf2)); in fs_write_multiple_bufs()
3120 ASSERT(strcmp(buf, test_buf) == 0); in fs_write_multiple_bufs()
3131 iovs[0] = uv_buf_init(buf, sizeof(test_buf)); in fs_write_multiple_bufs()
3135 if (read_req.result == sizeof(test_buf)) { in fs_write_multiple_bufs()
3142 ASSERT(read_req.result == sizeof(test_buf) + sizeof(test_buf2)); in fs_write_multiple_bufs()
3144 ASSERT(strcmp(buf, test_buf) == 0); in fs_write_multiple_bufs()
3150 sizeof(test_buf) + sizeof(test_buf2), NULL); in fs_write_multiple_bufs()
3202 iovs[index] = uv_buf_init(test_buf, sizeof(test_buf)); in fs_write_alotof_bufs()
3212 ASSERT((size_t)write_req.result == sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3216 buffer = malloc(sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3220 iovs[index] = uv_buf_init(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs()
3221 sizeof(test_buf)); in fs_write_alotof_bufs()
3238 ASSERT((size_t)read_req.result == sizeof(test_buf) * iovcount); in fs_write_alotof_bufs()
3241 ASSERT(strncmp(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs()
3242 test_buf, in fs_write_alotof_bufs()
3243 sizeof(test_buf)) == 0); in fs_write_alotof_bufs()
3321 iovs[index] = uv_buf_init(test_buf, sizeof(test_buf)); in fs_write_alotof_bufs_with_offset()
3331 ASSERT((size_t)write_req.result == sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3335 buffer = malloc(sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3339 iovs[index] = uv_buf_init(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs_with_offset()
3340 sizeof(test_buf)); in fs_write_alotof_bufs_with_offset()
3345 if (r == sizeof(test_buf)) in fs_write_alotof_bufs_with_offset()
3349 ASSERT((size_t)read_req.result == sizeof(test_buf) * iovcount); in fs_write_alotof_bufs_with_offset()
3352 ASSERT(strncmp(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs_with_offset()
3353 test_buf, in fs_write_alotof_bufs_with_offset()
3354 sizeof(test_buf)) == 0); in fs_write_alotof_bufs_with_offset()
3537 ctx.size = sizeof(test_buf) * iovcount; in test_fs_partial()
3544 iovs[index] = uv_buf_init(buffer + index * sizeof(test_buf), sizeof(test_buf)); in test_fs_partial()
3780 iov = uv_buf_init(test_buf, sizeof(test_buf)); in TEST_IMPL()
3782 ASSERT(r == sizeof(test_buf)); in TEST_IMPL()
3788 ASSERT(r == sizeof(test_buf)); in TEST_IMPL()
3789 ASSERT(strcmp(buf, test_buf) == 0); in TEST_IMPL()