diff options
author | Sanket Padawe <sanketpadawe@google.com> | 2017-09-03 22:32:43 -0700 |
---|---|---|
committer | Jaekyun Seok <jaekyun@google.com> | 2017-10-18 23:41:05 +0000 |
commit | 536818d17a25f7c8751bf3f437f9a00d3f5cfba5 (patch) | |
tree | caab5e68367db05a69ae3e083d143e9ab36ad855 | |
parent | 3c01fef56c7f4f6b5e408622c06c0b790c57c90c (diff) | |
download | android_hardware_interfaces-536818d17a25f7c8751bf3f437f9a00d3f5cfba5.tar.gz android_hardware_interfaces-536818d17a25f7c8751bf3f437f9a00d3f5cfba5.tar.bz2 android_hardware_interfaces-536818d17a25f7c8751bf3f437f9a00d3f5cfba5.zip |
Fix VTS test which turns off radio.
Since the purpose of most of the test cases in current VTS is to check
if proper errors are returned and there is no crash seen in vendor code,
updating setRadioPower test case to turn on the radio instead of
turning off. We want to avoid test cases which turn off
radio or leads to modem shut down as those test cases affect other tests.
Test: VTS
Change-Id: I4fb9f18884f7ef21162015a0032c4431444f7025
Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
Bug: 65230472
(cherry picked from commit 9a721b808743069fc26d6cf226595e2823e347a6)
-rw-r--r-- | radio/1.0/vts/functional/radio_hidl_hal_misc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp b/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp index 87e7a40a1..a3ae1e3ea 100644 --- a/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp +++ b/radio/1.0/vts/functional/radio_hidl_hal_misc.cpp @@ -70,7 +70,7 @@ TEST_F(RadioHidlTest, getOperator) { TEST_F(RadioHidlTest, setRadioPower) { int serial = GetRandomSerialNumber(); - radio->setRadioPower(serial, 0); + radio->setRadioPower(serial, 1); EXPECT_EQ(std::cv_status::no_timeout, wait()); EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type); EXPECT_EQ(serial, radioRsp->rspInfo.serial); |