summaryrefslogtreecommitdiff
path: root/light/aidl/vts/functional/VtsHalLightTargetTest.cpp
diff options
context:
space:
mode:
authorDan Shi <dshi@google.com>2020-07-28 13:09:30 -0700
committerDan Shi <dshi@google.com>2020-07-28 15:12:32 -0700
commitba4d532fee4bbadcdcb7aa52edd12232f30e2fa4 (patch)
treee484e52c8906abb021ccc1c1821fc428e678af2a /light/aidl/vts/functional/VtsHalLightTargetTest.cpp
parent3d5e0bb649b26a41e7a2ceb9233606c5db6d79be (diff)
Suppress gtest error for tests without any instance
Bug: 162052785 Test: m -j vts Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
Diffstat (limited to 'light/aidl/vts/functional/VtsHalLightTargetTest.cpp')
-rw-r--r--light/aidl/vts/functional/VtsHalLightTargetTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/light/aidl/vts/functional/VtsHalLightTargetTest.cpp b/light/aidl/vts/functional/VtsHalLightTargetTest.cpp
index 3c26278a19..5e3eabdbe5 100644
--- a/light/aidl/vts/functional/VtsHalLightTargetTest.cpp
+++ b/light/aidl/vts/functional/VtsHalLightTargetTest.cpp
@@ -159,6 +159,7 @@ TEST_P(LightsAidl, TestInvalidLightIdUnsupported) {
EXPECT_TRUE(status.exceptionCode() == Status::EX_UNSUPPORTED_OPERATION);
}
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(LightsAidl);
INSTANTIATE_TEST_SUITE_P(Lights, LightsAidl,
testing::ValuesIn(android::getAidlHalInstanceNames(ILights::descriptor)),
android::PrintInstanceNameToString);