From 0e0ad3e8557940df83ce249b2fb2a06d177eb3ed Mon Sep 17 00:00:00 2001 From: Shinru Han Date: Wed, 8 Dec 2021 15:25:35 +0800 Subject: [PATCH] Fix GnssHalTest#TestAGnssExtension fail Bug: 209711226 Test: 1. atest GnssHalTest 2. gsi_avd/test-mapping-presubmit/vendor_img_sc Change-Id: I77e597732e29d069f4beaca91b1e530ca5499c78 --- gnss/aidl/vts/gnss_hal_test_cases.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnss/aidl/vts/gnss_hal_test_cases.cpp b/gnss/aidl/vts/gnss_hal_test_cases.cpp index 970d1cb27b..aac59db2a0 100644 --- a/gnss/aidl/vts/gnss_hal_test_cases.cpp +++ b/gnss/aidl/vts/gnss_hal_test_cases.cpp @@ -804,6 +804,9 @@ TEST_P(GnssHalTest, TestAllExtensions) { * 3. Sets SUPL server host/port. */ TEST_P(GnssHalTest, TestAGnssExtension) { + if (aidl_gnss_hal_->getInterfaceVersion() == 1) { + return; + } sp iAGnss; auto status = aidl_gnss_hal_->getExtensionAGnss(&iAGnss); ASSERT_TRUE(status.isOk());