summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2025-01-28 00:09:16 +0000
committer Steven Moreland <smoreland@google.com> 2025-01-28 00:34:11 +0000
commita240c7e1c35395d5a159bb6bee80f646b58730bd (patch)
treefb1e8ac5fe6cc128b1303ca08cf9078a01815342
parent12a57e3f4297cfc69a66fa5951853638fa619e01 (diff)
binderRpcTest: re-enable logs
stderr logs are not very visible in Android, so it makes it hard to see what's going on. Bugs: me Test: N/A Change-Id: I8630c3f814f61af79aed3a203e9af1568fe09134
-rw-r--r--libs/binder/tests/binderRpcTest.cpp2
-rw-r--r--libs/binder/tests/binderRpcTestService.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/libs/binder/tests/binderRpcTest.cpp b/libs/binder/tests/binderRpcTest.cpp
index 9f656ec96c..fed0d4620b 100644
--- a/libs/binder/tests/binderRpcTest.cpp
+++ b/libs/binder/tests/binderRpcTest.cpp
@@ -2742,7 +2742,9 @@ INSTANTIATE_TEST_SUITE_P(
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
+#ifndef __ANDROID__
__android_log_set_logger(__android_log_stderr_logger);
+#endif
return RUN_ALL_TESTS();
}
diff --git a/libs/binder/tests/binderRpcTestService.cpp b/libs/binder/tests/binderRpcTestService.cpp
index aef946481f..0084b9ada2 100644
--- a/libs/binder/tests/binderRpcTestService.cpp
+++ b/libs/binder/tests/binderRpcTestService.cpp
@@ -100,7 +100,9 @@ public:
};
int main(int argc, char* argv[]) {
+#ifndef __ANDROID__
__android_log_set_logger(__android_log_stderr_logger);
+#endif
LOG_ALWAYS_FATAL_IF(argc != 3, "Invalid number of arguments: %d", argc);
unique_fd writeEnd(atoi(argv[1]));