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

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

binderRpcTest: actually include strong count in leaked ref

Bug: 244325464
Change-Id: I65da2532fd2807849aaba2ea1c41964e736d791d
Test: binderRpcTest
parent db95d579
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -181,9 +181,10 @@ struct ProcessSession {
            wp<RpcSession> weakSession = session;
            session = nullptr;

            EXPECT_EQ(nullptr, weakSession.promote())
            sp<RpcSession> strongSession = weakSession.promote();
            EXPECT_EQ(nullptr, strongSession)
                    << (debugBacktrace(host.getPid()), debugBacktrace(getpid()), "Leaked sess: ")
                    << session->getStrongCount();
                    << strongSession->getStrongCount();
        }
    }
};