diff options
| -rw-r--r-- | libs/binder/tests/binderRpcTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/binder/tests/binderRpcTest.cpp b/libs/binder/tests/binderRpcTest.cpp index 7a550f7e1a..652da991a4 100644 --- a/libs/binder/tests/binderRpcTest.cpp +++ b/libs/binder/tests/binderRpcTest.cpp @@ -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(); } } }; |