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);