From e3d77fb6d0863881526ab07933647a959b88e0d7 Mon Sep 17 00:00:00 2001 From: "James-YT.lin" Date: Wed, 9 Oct 2019 10:27:09 +0800 Subject: [PATCH] VtsHalRadioV1_4Target.setPreferredNetworkTypeBitmap Add mode not support check for setPreferredNetworkTypeBitmap. Bug: 142369230 Test: run vts -m VtsHalRadioV1_4Target Change-Id: I17b07f40b313f9b04e2f73d9b4a235ede891f8ea (cherry picked from commit 16e7bf5ce34bad76c4c96304950417b446e46b89) --- radio/1.4/vts/functional/radio_hidl_hal_api.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radio/1.4/vts/functional/radio_hidl_hal_api.cpp b/radio/1.4/vts/functional/radio_hidl_hal_api.cpp index b0b984cf16..8f357a0f5c 100644 --- a/radio/1.4/vts/functional/radio_hidl_hal_api.cpp +++ b/radio/1.4/vts/functional/radio_hidl_hal_api.cpp @@ -232,7 +232,8 @@ TEST_P(RadioHidlTest_v1_4, setPreferredNetworkTypeBitmap) { EXPECT_EQ(serial, radioRsp_v1_4->rspInfo.serial); ALOGI("setPreferredNetworkTypeBitmap, rspInfo.error = %s\n", toString(radioRsp_v1_4->rspInfo.error).c_str()); - EXPECT_EQ(RadioError::NONE, radioRsp_v1_4->rspInfo.error); + ASSERT_TRUE(CheckAnyOfErrors(radioRsp_v1_4->rspInfo.error, + {RadioError::NONE, RadioError::MODE_NOT_SUPPORTED})); if (radioRsp_v1_4->rspInfo.error == RadioError::NONE) { // give some time for modem to set the value. sleep(3);