binderRpcTest: include strong count in leaked ref
Happened 1/2304 times yesterday. Still can't repro, still
not enough info to debug.
Bug: 244325464
Test: binderRpcTest
Change-Id: I1e05799eb0ec7395f2f298698c1beb46b8af1720
diff --git a/libs/binder/tests/binderRpcTest.cpp b/libs/binder/tests/binderRpcTest.cpp
index 9a6d4df..7a550f7 100644
--- a/libs/binder/tests/binderRpcTest.cpp
+++ b/libs/binder/tests/binderRpcTest.cpp
@@ -182,7 +182,8 @@
session = nullptr;
EXPECT_EQ(nullptr, weakSession.promote())
- << (debugBacktrace(host.getPid()), debugBacktrace(getpid()), "Leaked session");
+ << (debugBacktrace(host.getPid()), debugBacktrace(getpid()), "Leaked sess: ")
+ << session->getStrongCount();
}
}
};