Skip to content

Commit 92af73a

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "binderRpcTest: re-enable logs" into main
2 parents 0af893b + a240c7e commit 92af73a

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
@@ -2771,7 +2771,9 @@ INSTANTIATE_TEST_SUITE_P(
27712771

27722772
int main(int argc, char** argv) {
27732773
::testing::InitGoogleTest(&argc, argv);
2774+
#ifndef __ANDROID__
27742775
__android_log_set_logger(__android_log_stderr_logger);
2776+
#endif
27752777

27762778
return RUN_ALL_TESTS();
27772779
}

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)