VtsAidlHalSensorsTargetTest: Fix assignment

To make this assignment have an impact outside the function, we
need to assign to the dereference of the pointer.

Test: TreeHugger
Bug: 195593357
Change-Id: I3541735574d6ebe2f2620c2bc5fbf5dd7d97cd91
This commit is contained in:
Greg Kaiser
2022-01-14 07:54:49 -08:00
parent 496ce11491
commit aae30614d6

View File

@@ -978,7 +978,7 @@ void SensorsAidlTest::verifyRegisterDirectChannel(
ASSERT_EQ(status.getExceptionCode(), error);
ASSERT_EQ(channelHandle, -1);
}
directChannelHandle = &channelHandle;
*directChannelHandle = channelHandle;
}
void SensorsAidlTest::verifyUnregisterDirectChannel(int32_t* channelHandle,