diff options
author | 2023-10-13 23:10:06 +0000 | |
---|---|---|
committer | 2023-10-13 23:10:06 +0000 | |
commit | 74a858c03904bb7bd096bf9f2dc330e6bae8c814 (patch) | |
tree | a028479e8ffbe078a67fb2dbe018752f7b74e24f | |
parent | f6273276443dfea16a8c3500b9cf730b1c2e7393 (diff) | |
parent | e339cf4ed5d2cf0ac632f6921466a1db469fa6e8 (diff) |
Merge "binder random fd: always nonblock" into main
-rw-r--r-- | libs/binder/tests/parcel_fuzzer/random_fd.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/binder/tests/parcel_fuzzer/random_fd.cpp b/libs/binder/tests/parcel_fuzzer/random_fd.cpp index 7390d497c4..4a9bd07c6e 100644 --- a/libs/binder/tests/parcel_fuzzer/random_fd.cpp +++ b/libs/binder/tests/parcel_fuzzer/random_fd.cpp @@ -51,7 +51,9 @@ std::vector<unique_fd> getRandomFds(FuzzedDataProvider* provider) { int flags = O_CLOEXEC; if (provider->ConsumeBool()) flags |= O_DIRECT; - if (provider->ConsumeBool()) flags |= O_NONBLOCK; + + // TODO(b/236812909): also test blocking + if (true) flags |= O_NONBLOCK; CHECK_EQ(0, pipe2(pipefds, flags)) << flags; |