commit | 3e48aa434d0c6a5813ea7e8e2b7b547deb1c9a36 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Fri Apr 19 09:03:07 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Apr 19 09:03:07 2024 +0000 |
tree | 2285d0c85e25ebf1fb21d08b43ed4698a640f883 | |
parent | 444e15457cdd0f75c913256874d83a29144c5de0 [diff] | |
parent | 4738e5291d5314b38fe19ef71f6d80dbf9176ab9 [diff] |
Merge "binderLibTest: catch binder driver with reversed freezing" into main am: c172313bba am: 4738e5291d Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3039453 Change-Id: I904d61576446327571989398c287de64f0cc7b87 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/libs/binder/tests/binderLibTest.cpp b/libs/binder/tests/binderLibTest.cpp index 2cea14f..1f61f18 100644 --- a/libs/binder/tests/binderLibTest.cpp +++ b/libs/binder/tests/binderLibTest.cpp
@@ -506,10 +506,11 @@ // Pass test on devices where BINDER_FREEZE ioctl is not supported int ret = IPCThreadState::self()->freeze(pid, false, 0); - if (ret != 0) { + if (ret == -EINVAL) { GTEST_SKIP(); return; } + EXPECT_EQ(NO_ERROR, ret); EXPECT_EQ(-EAGAIN, IPCThreadState::self()->freeze(pid, true, 0));