Skip to content

Commit a0d6a71

Browse files
Add errno to CHECK_EQ log
Ignore-AOSP-First: na Flag: TEST_ONLY Test: binder_parcel_fuzzer Bug: 406499223 Change-Id: I67746d7f88c5202c6fa1d43f0b2f0e59bcd10155
1 parent e511fd4 commit a0d6a71

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libs/binder/tests/parcel_fuzzer/random_fd.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ std::vector<unique_fd> getRandomFds(FuzzedDataProvider* provider) {
5555
// TODO(b/236812909): also test blocking
5656
if (true) flags |= O_NONBLOCK;
5757

58-
CHECK_EQ(0, pipe2(pipefds, flags)) << flags;
58+
CHECK_EQ(0, pipe2(pipefds, flags))
59+
<< "flags: " << flags << ", errno: " << strerror(errno);
5960

6061
if (provider->ConsumeBool()) std::swap(pipefds[0], pipefds[1]);
6162

0 commit comments

Comments
 (0)