Home | History | Annotate | Download | only in adb

Lines Matching defs:stderr

92 // |stdout| and |stderr| with their respective data, and returns the exit code
94 int ReadShellProtocol(int fd, std::string* stdout, std::string* stderr) {
97 stderr->clear();
106 stderr->append(protocol->data(), protocol->data_length());
180 std::string stdout, stderr;
181 EXPECT_EQ(24, ReadShellProtocol(subprocess_fd_, &stdout, &stderr));
183 ExpectLinesEqual(stderr, {"bar"});
192 // PTY always combines stdout and stderr but the shell protocol should
194 std::string stdout, stderr;
195 EXPECT_EQ(50, ReadShellProtocol(subprocess_fd_, &stdout, &stderr));
197 ExpectLinesEqual(stderr, {});
219 std::string stdout, stderr;
220 EXPECT_EQ(0, ReadShellProtocol(subprocess_fd_, &stdout, &stderr));
242 std::string stdout, stderr;
243 EXPECT_EQ(0, ReadShellProtocol(subprocess_fd_, &stdout, &stderr));
245 ExpectLinesEqual(stderr, {});
254 std::string stdout, stderr;
255 EXPECT_EQ(0, ReadShellProtocol(subprocess_fd_, &stdout, &stderr));
257 ExpectLinesEqual(stderr, {"bar"});
260 // Tests that nothing breaks when the stderr pipe closes.
266 std::string stdout, stderr;
267 EXPECT_EQ(0, ReadShellProtocol(subprocess_fd_, &stdout, &stderr));
269 ExpectLinesEqual(stderr, {});