diff options
| author | 2022-01-14 05:27:28 +0000 | |
|---|---|---|
| committer | 2022-01-14 05:27:28 +0000 | |
| commit | 1faa47bdf6cce400f88cde2caf8982bad2fc50f3 (patch) | |
| tree | 384b29b4d76eafe6ac997c0a5ec1268ee398f39c | |
| parent | e4217241a47ca7c103e59902df4e51d4e00ff03d (diff) | |
| parent | dc7cb29ae9e2b13d19ca736d535e8a330a8678cf (diff) | |
Merge "binderRpcTest: BinderRpc.Java skip on user builds." am: bec007aad9 am: a35efd5363 am: 815c5959d4 am: dc7cb29ae9
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1947628
Change-Id: I8a61c4eaa7243fa0509c2ec9d09d6be7e0eda30b
| -rw-r--r-- | libs/binder/tests/binderRpcTest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/binder/tests/binderRpcTest.cpp b/libs/binder/tests/binderRpcTest.cpp index ca68b99e35..c2639e7c67 100644 --- a/libs/binder/tests/binderRpcTest.cpp +++ b/libs/binder/tests/binderRpcTest.cpp @@ -1517,10 +1517,11 @@ TEST(BinderRpc, Java) { auto keepAlive = sp<BBinder>::make(); auto setRpcClientDebugStatus = binder->setRpcClientDebug(std::move(socket), keepAlive); - if (!android::base::GetBoolProperty("ro.debuggable", false)) { + if (!android::base::GetBoolProperty("ro.debuggable", false) || + android::base::GetProperty("ro.build.type", "") == "user") { ASSERT_EQ(INVALID_OPERATION, setRpcClientDebugStatus) - << "setRpcClientDebug should return INVALID_OPERATION on non-debuggable builds, " - "but get " + << "setRpcClientDebug should return INVALID_OPERATION on non-debuggable or user " + "builds, but get " << statusToString(setRpcClientDebugStatus); GTEST_SKIP(); } |