Merge "binderRpcTest: actually include strong count in leaked ref"
diff --git a/libs/binder/tests/binderRpcTest.cpp b/libs/binder/tests/binderRpcTest.cpp
index 7a550f7..652da99 100644
--- a/libs/binder/tests/binderRpcTest.cpp
+++ b/libs/binder/tests/binderRpcTest.cpp
@@ -181,9 +181,10 @@
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();
}
}
};