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

Commit 5046480d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "binderRpcTest: threadpool race leak" am: bdac3ea1 am: a51585cb am:...

Merge "binderRpcTest: threadpool race leak" am: bdac3ea1 am: a51585cb am: 14f09ec7 am: 9e7e1717

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2626196



Change-Id: Id9861b71aa887452f5a860ed410702a30eda3cbb
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e002c618 9e7e1717
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -691,7 +691,11 @@ TEST_P(BinderRpc, SessionWithIncomingThreadpoolDoesntLeak) {

    EXPECT_EQ(nullptr, session.promote());

    sleep(1); // give time for remote session to shutdown
    // now that it has died, wait for the remote session to shutdown
    std::vector<int32_t> remoteCounts;
    do {
        EXPECT_OK(proc.rootIface->countBinders(&remoteCounts));
    } while (remoteCounts.size() > 1);
}

TEST_P(BinderRpc, SingleDeathRecipient) {