Skip to content

Commit 8d1741d

Browse files
libbinder_ndk_unit_test: set threadpool max to 0
This still allows one binder thread in the thread pool, and one main thread that drives the test. Test: libbinder_ndk_unit_test Bug: 319210610 Change-Id: Iaaba8bf641b3fb9a31aaa298c75327d853727be6
1 parent df516d7 commit 8d1741d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/binder/ndk/tests/libbinder_ndk_unit_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ int main(int argc, char* argv[]) {
984984
return generatedFlaggedService(test_flags, kBinderNdkUnitTestServiceFlagged);
985985
}
986986

987-
ABinderProcess_setThreadPoolMaxThreadCount(1); // to receive death notifications/callbacks
987+
ABinderProcess_setThreadPoolMaxThreadCount(0);
988988
ABinderProcess_startThreadPool();
989989

990990
return RUN_ALL_TESTS();

0 commit comments

Comments
 (0)