Lines Matching refs:enable_fd
205 int enable_fd; in FIXTURE() local
219 self->enable_fd = -1; in FIXTURE_SETUP()
228 if (self->enable_fd != -1) { in FIXTURE_TEARDOWN()
229 write(self->enable_fd, "0", sizeof("0")); in FIXTURE_TEARDOWN()
230 close(self->enable_fd); in FIXTURE_TEARDOWN()
277 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
278 ASSERT_NE(-1, self->enable_fd); in TEST_F()
279 ASSERT_NE(-1, write(self->enable_fd, "0", sizeof("0"))) in TEST_F()
282 ASSERT_NE(-1, write(self->enable_fd, "1", sizeof("1"))) in TEST_F()
286 ASSERT_NE(-1, write(self->enable_fd, "0", sizeof("0"))) in TEST_F()
346 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
347 ASSERT_NE(-1, write(self->enable_fd, "1", sizeof("1"))) in TEST_F()
384 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
385 ASSERT_NE(-1, write(self->enable_fd, "1", sizeof("1"))) in TEST_F()
422 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
423 ASSERT_NE(-1, write(self->enable_fd, "1", sizeof("1"))) in TEST_F()
465 self->enable_fd = open(enable_file, O_RDWR); in TEST_F()
466 ASSERT_NE(-1, write(self->enable_fd, "1", sizeof("1"))) in TEST_F()