summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAOYAGI Takako <aoyagi.takako@jp.panasonic.com>2023-03-15 22:54:22 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-03-15 22:54:22 +0000
commitc0fd000566c9b574124b4e2331eec8b4dcb7766c (patch)
tree067d3559127e64c84d2fc3141cb1a953f350fcea
parent5993719991ce3d7551760dc83e9b39b18ea2bf2c (diff)
parent45a15ed8b972eb3faa7a0af9ce18b42c3d77387e (diff)
Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695 Change-Id: I105d3e8472f27f2d49a6ab675d173af739fca039 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--sensors/common/vts/2_X/VtsHalSensorsV2_XTargetTest.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sensors/common/vts/2_X/VtsHalSensorsV2_XTargetTest.h b/sensors/common/vts/2_X/VtsHalSensorsV2_XTargetTest.h
index ea5dc70c5b..0a663fa168 100644
--- a/sensors/common/vts/2_X/VtsHalSensorsV2_XTargetTest.h
+++ b/sensors/common/vts/2_X/VtsHalSensorsV2_XTargetTest.h
@@ -560,6 +560,11 @@ TEST_P(SensorsHidlTest, CallInitializeTwice) {
}
TEST_P(SensorsHidlTest, CleanupConnectionsOnInitialize) {
+ if (getSensorsList().size() == 0) {
+ // No sensors
+ return;
+ }
+
activateAllSensors(true);
// Verify that events are received