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

Commit b8977f19 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "binderLibTest: fix HangingServices race"

parents 079fb30e 436a110a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1406,9 +1406,11 @@ TEST_F(BinderLibTest, HangingServices) {
    ASSERT_TRUE(server != nullptr);
    int32_t delay = 1000; // ms
    data.writeInt32(delay);
    // b/266537959 - must take before taking lock, since countdown is started in the remote
    // process there.
    size_t epochMsBefore = epochMillis();
    EXPECT_THAT(server->transact(BINDER_LIB_TEST_PROCESS_TEMPORARY_LOCK, data, &reply), NO_ERROR);
    std::vector<std::thread> ts;
    size_t epochMsBefore = epochMillis();
    for (size_t i = 0; i < kKernelThreads + 1; i++) {
        ts.push_back(std::thread([&] {
            Parcel local_reply;