Lines Matching refs:data_fd
165 int data_fd; in FIXTURE() local
173 self->data_fd = open(data_file, O_RDWR); in FIXTURE_SETUP()
174 ASSERT_NE(-1, self->data_fd); in FIXTURE_SETUP()
181 close(self->data_fd); in FIXTURE_TEARDOWN()
203 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
208 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
231 ASSERT_EQ(-1, ioctl(self->data_fd, DIAG_IOCSDEL, "__test_event")); in TEST_F()
235 close(self->data_fd); in TEST_F()
236 self->data_fd = open(data_file, O_RDWR); in TEST_F()
237 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSDEL, "__test_event")); in TEST_F()
268 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
280 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
294 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
317 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
322 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 2)); in TEST_F()
326 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 2)); in TEST_F()
346 ASSERT_EQ(0, ioctl(self->data_fd, DIAG_IOCSREG, ®)); in TEST_F()
364 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 1)); in TEST_F()
377 ASSERT_NE(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
383 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
388 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
393 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
398 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()
404 ASSERT_EQ(-1, writev(self->data_fd, (const struct iovec *)io, 3)); in TEST_F()