Loading libs/binder/tests/binderRpcTest.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -1095,10 +1095,7 @@ TEST_P(BinderRpc, SingleDeathRecipient) { } std::unique_lock<std::mutex> lock(dr->mMtx); if (!dr->dead) { EXPECT_EQ(std::cv_status::no_timeout, dr->mCv.wait_for(lock, 1000ms)); } EXPECT_TRUE(dr->dead) << "Failed to receive the death notification."; ASSERT_TRUE(dr->mCv.wait_for(lock, 1000ms, [&]() { return dr->dead; })); // need to wait for the session to shutdown so we don't "Leak session" EXPECT_TRUE(proc.proc.sessions.at(0).session->shutdownAndWait(true)); Loading Loading
libs/binder/tests/binderRpcTest.cpp +1 −4 Original line number Diff line number Diff line Loading @@ -1095,10 +1095,7 @@ TEST_P(BinderRpc, SingleDeathRecipient) { } std::unique_lock<std::mutex> lock(dr->mMtx); if (!dr->dead) { EXPECT_EQ(std::cv_status::no_timeout, dr->mCv.wait_for(lock, 1000ms)); } EXPECT_TRUE(dr->dead) << "Failed to receive the death notification."; ASSERT_TRUE(dr->mCv.wait_for(lock, 1000ms, [&]() { return dr->dead; })); // need to wait for the session to shutdown so we don't "Leak session" EXPECT_TRUE(proc.proc.sessions.at(0).session->shutdownAndWait(true)); Loading