summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2021-10-18 16:54:28 -0700
committer Steven Moreland <smoreland@google.com> 2021-10-18 17:06:45 -0700
commitbdab8b6b72c516c66bdb32aff9a1e306e3b52a88 (patch)
tree71ab67cc0b27f0ba39986e033eed65564185e8f4
parentd8b3d5f05695af40955c2d3e1d40c51db437f977 (diff)
binder_rpc_fuzzer: introduce sleep
We don't have a good way now to wait for the server to finish processing the incoming data. Sleep for a little bit, so that we can get more deterministic results until we have a better way to do this. Bug: 199324691 Test: binder_rpc_fuzzer Change-Id: Ic1ba39061a08fc1d92f1931b2f1e6d0c895ac7e5
-rw-r--r--libs/binder/tests/rpc_fuzzer/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/binder/tests/rpc_fuzzer/main.cpp b/libs/binder/tests/rpc_fuzzer/main.cpp
index 518849a3e4..83f2ebe812 100644
--- a/libs/binder/tests/rpc_fuzzer/main.cpp
+++ b/libs/binder/tests/rpc_fuzzer/main.cpp
@@ -158,6 +158,8 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
}
}
+ usleep(10000);
+
if (hangupBeforeShutdown) {
connections.clear();
while (!server->listSessions().empty() || server->numUninitializedSessions()) {