From 694e50be3b2b20d24c7cd88d0c8fa71b574a6fd9 Mon Sep 17 00:00:00 2001 From: Ankit Goyal Date: Thu, 26 May 2022 16:24:33 -0700 Subject: [PATCH] Skip front buffer test if not supported Bug: 218383959 Test: this Change-Id: I61beba63556c1d6a32e220fffd8e4b4fdfd8bd94 --- .../aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graphics/allocator/aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp b/graphics/allocator/aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp index 346c208329..59af5cf375 100644 --- a/graphics/allocator/aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp +++ b/graphics/allocator/aidl/vts/VtsHalGraphicsAllocatorAidl_TargetTest.cpp @@ -277,6 +277,7 @@ TEST_P(GraphicsFrontBufferTests, FrontBufferGpuToCpu) { if (!supported) { ASSERT_EQ(nullptr, buffer.get()) << "Allocation succeeded, but IMapper::isSupported was false"; + GTEST_SKIP(); } else { ASSERT_NE(nullptr, buffer.get()) << "Allocation failed, but IMapper::isSupported was true"; } @@ -318,6 +319,7 @@ TEST_P(GraphicsFrontBufferTests, FrontBufferGpuToGpu) { if (!supported) { ASSERT_EQ(nullptr, buffer.get()) << "Allocation succeeded, but IMapper::isSupported was false"; + GTEST_SKIP(); } else { ASSERT_NE(nullptr, buffer.get()) << "Allocation failed, but IMapper::isSupported was true"; }