summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnkit Goyal <layog@google.com>2022-05-26 16:23:22 -0700
committerAnkit Goyal <layog@google.com>2022-05-26 17:04:12 -0700
commit72415bcfa325e1fe63be70f470324b5a0f671b37 (patch)
treedf9c065d7dc99989684b96ba347b2a6d2f62890e
parente8919888ad3ece2d0587272487f231fc6450ad1e (diff)
Do not generate failed status on allocation failure
Bug: 218383959 Test: this Change-Id: Ibb37d9cad8004d31c3d7cb75ebfa7839f7d07ed0
-rw-r--r--graphics/allocator/aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/graphics/allocator/aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp b/graphics/allocator/aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp
index c9d058db7b..346c208329 100644
--- a/graphics/allocator/aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp
+++ b/graphics/allocator/aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp
@@ -153,7 +153,6 @@ class GraphicsTestsBase {
if (error == EX_SERVICE_SPECIFIC) {
error = status.getServiceSpecificError();
EXPECT_NE(OK, error) << "Failed to set error properly";
- EXPECT_EQ(OK, error) << "Failed to allocate";
} else {
EXPECT_EQ(OK, error) << "Allocation transport failure";
}
@@ -375,4 +374,4 @@ INSTANTIATE_TEST_CASE_P(
[](auto info) -> std::string {
std::string name = std::to_string(info.index) + "/" + std::get<2>(info.param).name;
return Sanitize(name);
- }); \ No newline at end of file
+ });