mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Fix VTS crash for getAvailableNetworks in Radio 1.6"
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user