File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,6 +235,16 @@ cc_defaults {
235235 " binder_test_defaults" ,
236236 ],
237237
238+ compile_multilib : " both" ,
239+ multilib : {
240+ lib32 : {
241+ suffix : " 32" ,
242+ },
243+ lib64 : {
244+ suffix : " 64" ,
245+ },
246+ },
247+
238248 static_libs : [
239249 " libbinder_test_utils" ,
240250 " libbinder_tls_static" ,
@@ -267,7 +277,6 @@ cc_defaults {
267277 defaults : [
268278 " binderRpcTest_common_defaults" ,
269279 ],
270- compile_multilib : " first" ,
271280
272281 srcs : [
273282 " binderRpcTest.cpp" ,
Original file line number Diff line number Diff line change 1919#include < aidl/IBinderRpcTest.h>
2020#endif
2121
22+ #if defined(__LP64__)
23+ #define TEST_FILE_SUFFIX " 64"
24+ #else
25+ #define TEST_FILE_SUFFIX " 32"
26+ #endif
27+
2228#include < chrono>
2329#include < cstdlib>
2430#include < iostream>
@@ -259,7 +265,8 @@ std::unique_ptr<ProcessSession> BinderRpc::createRpcTestSocketServerProcessEtc(
259265
260266 std::string path = GetExecutableDirectory ();
261267 auto servicePath = path + " /binder_rpc_test_service" +
262- (singleThreaded ? " _single_threaded" : " " ) + (noKernel ? " _no_kernel" : " " );
268+ (singleThreaded ? " _single_threaded" : " " ) + (noKernel ? " _no_kernel" : " " ) +
269+ TEST_FILE_SUFFIX;
263270
264271 unique_fd bootstrapClientFd, socketFd;
265272
You can’t perform that action at this time.
0 commit comments