Fix for VTS test CleanupConnectionsOnInitialize

Sensor event never occur on DUT that has no sensor.
So, skip this test case on DUT that has no sensor.

Test: run vts -m VtsHalSensorsV2_0TargetTest

Bug: 273383821
Change-Id: I657b74ca3c67c105e40e58a7e4c700370a9db3e3
Signed-off-by: AOYAGI Takako <aoyagi.takako@jp.panasonic.com>
This commit is contained in:
AOYAGI Takako
2023-03-14 09:48:44 +09:00
committed by Brian Duddie
parent 77b8b2524a
commit 45a15ed8b9

View File

@@ -549,6 +549,11 @@ TEST_P(SensorsHidlTest, CallInitializeTwice) {
}
TEST_P(SensorsHidlTest, CleanupConnectionsOnInitialize) {
if (getSensorsList().size() == 0) {
// No sensors
return;
}
activateAllSensors(true);
// Verify that events are received