Lines Matching refs:tf
84 TemporaryFile tf; in TEST() local
93 EXPECT_EQ(EINVAL, posix_fadvise(tf.fd, 0, 0, -1)); in TEST()
96 EXPECT_EQ(EINVAL, posix_fadvise64(tf.fd, 0, 0, -1)); in TEST()
99 EXPECT_EQ(0, posix_fadvise(tf.fd, 0, 0, POSIX_FADV_NORMAL)); in TEST()
100 EXPECT_EQ(0, posix_fadvise64(tf.fd, 0, 0, POSIX_FADV_NORMAL)); in TEST()
104 TemporaryFile tf; in TEST() local
110 ASSERT_EQ(-1, fallocate(tf.fd, 0, 0, -1)); in TEST()
114 ASSERT_EQ(-1, fallocate64(tf.fd, 0, 0, -1)); in TEST()
118 ASSERT_EQ(EINVAL, posix_fallocate(tf.fd, 0, -1)); in TEST()
122 ASSERT_EQ(EINVAL, posix_fallocate64(tf.fd, 0, -1)); in TEST()
127 TemporaryFile tf; in TEST() local
129 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
133 ASSERT_EQ(0, fallocate(tf.fd, 0, 0, 1)); in TEST()
134 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
137 ASSERT_EQ(0, fallocate64(tf.fd, 0, 0, 2)); in TEST()
138 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
142 ASSERT_EQ(0, posix_fallocate(tf.fd, 0, 3)); in TEST()
143 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
146 ASSERT_EQ(0, posix_fallocate64(tf.fd, 0, 4)); in TEST()
147 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
186 TemporaryFile tf; in TEST() local
191 …ssize_t bytes_written = splice(pipe_fds[0], nullptr, tf.fd, nullptr, bytes_read, SPLICE_F_MORE | S… in TEST()
276 TemporaryFile tf; in TEST() local
277 ASSERT_EQ(0, sync_file_range(tf.fd, 0, 0, 0)); in TEST()
282 ASSERT_EQ(-1, sync_file_range(tf.fd, 0, 0, ~0)); in TEST()
305 TemporaryFile tf; in TEST() local
307 ASSERT_EQ(0, fstatfs(tf.fd, &sfs)); in TEST()
309 ASSERT_EQ(-1, fallocate(tf.fd, FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE, 0, 1)); in TEST()