Skip to content

Commit a240c7e

Browse files
author
Steven Moreland
committed
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
1 parent 12a57e3 commit a240c7e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

libs/binder/tests/binderRpcTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,7 +2742,9 @@ INSTANTIATE_TEST_SUITE_P(
27422742

27432743
int main(int argc, char** argv) {
27442744
::testing::InitGoogleTest(&argc, argv);
2745+
#ifndef __ANDROID__
27452746
__android_log_set_logger(__android_log_stderr_logger);
2747+
#endif
27462748

27472749
return RUN_ALL_TESTS();
27482750
}

libs/binder/tests/binderRpcTestService.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ class MyBinderRpcTestAndroid : public MyBinderRpcTestBase {
100100
};
101101

102102
int main(int argc, char* argv[]) {
103+
#ifndef __ANDROID__
103104
__android_log_set_logger(__android_log_stderr_logger);
105+
#endif
104106

105107
LOG_ALWAYS_FATAL_IF(argc != 3, "Invalid number of arguments: %d", argc);
106108
unique_fd writeEnd(atoi(argv[1]));

0 commit comments

Comments
 (0)