diff options
author | AOYAGI Takako <aoyagi.takako@jp.panasonic.com> | 2023-03-15 22:54:22 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-03-15 22:54:22 +0000 |
commit | c0fd000566c9b574124b4e2331eec8b4dcb7766c (patch) | |
tree | 067d3559127e64c84d2fc3141cb1a953f350fcea | |
parent | 5993719991ce3d7551760dc83e9b39b18ea2bf2c (diff) | |
parent | 45a15ed8b972eb3faa7a0af9ce18b42c3d77387e (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.h | 5 |
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 |