OSDN Git Service

Fix VTS test which turns off radio.
authorSanket Padawe <sanketpadawe@google.com>
Mon, 4 Sep 2017 05:32:43 +0000 (22:32 -0700)
committerSanket Padawe <sanketpadawe@google.com>
Wed, 6 Sep 2017 06:46:49 +0000 (06:46 +0000)
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
Bug: 65230472

radio/1.0/vts/functional/radio_hidl_hal_misc.cpp

index d93b176..795af86 100644 (file)
@@ -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);