summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-16 23:21:17 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-03-16 23:21:17 +0000
commit91fb922335c75e02e983bf1edf91078d64cce68e (patch)
tree6c89c11ae41575e8e82f5b9b2a9a7c6cffa51632
parente5f5a21481003db317edd03f240340cf1dc3b06f (diff)
parent2ca3e29e631f0298bf042b89cf2965754620fef9 (diff)
Snap for 9760407 from 2ca3e29e631f0298bf042b89cf2965754620fef9 to tm-qpr3-release
Change-Id: Ib36f89f54b9f201530d978a93f68cbf5b87cd2bd
-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 7e22b1902f..aa6e8814a2 100644
--- a/sensors/common/vts/2_X/VtsHalSensorsV2_XTargetTest.h
+++ b/sensors/common/vts/2_X/VtsHalSensorsV2_XTargetTest.h
@@ -559,6 +559,11 @@ TEST_P(SensorsHidlTest, CallInitializeTwice) {
}
TEST_P(SensorsHidlTest, CleanupConnectionsOnInitialize) {
+ if (getSensorsList().size() == 0) {
+ // No sensors
+ return;
+ }
+
activateAllSensors(true);
// Verify that events are received