Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdab8b6b authored by Steven Moreland's avatar Steven Moreland
Browse files

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
parent d8b3d5f0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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()) {