Lines Matching refs:fds
236 int fds[2]; in TEST() local
237 ASSERT_NE(-1, pipe(fds)); in TEST()
243 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[0])); in TEST()
244 ASSERT_EQ(0, posix_spawn_file_actions_adddup2(&fa, fds[1], 1)); in TEST()
245 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[1])); in TEST()
247 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[1])); in TEST()
264 ASSERT_EQ(0, close(fds[1])); in TEST()
266 ASSERT_TRUE(android::base::ReadFdToString(fds[0], &content)); in TEST()
267 ASSERT_EQ(0, close(fds[0])); in TEST()
290 int fds[2]; in CatFileToString() local
291 ASSERT_NE(-1, pipe(fds)); in CatFileToString()
295 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[0])); in CatFileToString()
296 ASSERT_EQ(0, posix_spawn_file_actions_adddup2(&fa, fds[1], 1)); in CatFileToString()
297 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[1])); in CatFileToString()
305 ASSERT_EQ(0, close(fds[1])); in CatFileToString()
306 ASSERT_TRUE(android::base::ReadFdToString(fds[0], content)); in CatFileToString()
307 ASSERT_EQ(0, close(fds[0])); in CatFileToString()
532 int fds[2]; in TEST() local
533 ASSERT_NE(-1, pipe(fds)); in TEST()
541 ASSERT_EQ(0, posix_spawn_file_actions_addclose(&fa, fds[0])); in TEST()
542 ASSERT_EQ(0, posix_spawn_file_actions_adddup2(&fa, fds[1], 1)); in TEST()
554 ASSERT_EQ(0, close(fds[1])); in TEST()
556 ASSERT_TRUE(android::base::ReadFdToString(fds[0], &content)); in TEST()
557 ASSERT_EQ(0, close(fds[0])); in TEST()