Fix VTS crash for getAvailableNetworks in Radio 1.6
Bug: 187494016 Test: atest VtsHalRadioV1_6TargetTest -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:"--gtest_filter=*getAvailableNetworks/0_slot1" Change-Id: I3a3b5a0121cc97fbf6782da863d0ff6226504ee8
This commit is contained in:
parent
29ba064996
commit
845f0fbd1e
1 changed files with 2 additions and 4 deletions
|
@ -45,10 +45,8 @@ TEST_P(RadioHidlTest_v1_6, getAvailableNetworks) {
|
|||
::android::hardware::radio::V1_0::RadioError::NONE) {
|
||||
static const std::regex kOperatorNumericRe("^[0-9]{5,6}$");
|
||||
for (OperatorInfo info : radioRsp_v1_6->networkInfos) {
|
||||
if (info.operatorNumeric != nullptr) {
|
||||
ASSERT_TRUE(
|
||||
std::regex_match(std::string(info.operatorNumeric), kOperatorNumericRe));
|
||||
}
|
||||
ASSERT_TRUE(
|
||||
std::regex_match(std::string(info.operatorNumeric), kOperatorNumericRe));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue