From ba4d532fee4bbadcdcb7aa52edd12232f30e2fa4 Mon Sep 17 00:00:00 2001 From: Dan Shi Date: Tue, 28 Jul 2020 13:09:30 -0700 Subject: Suppress gtest error for tests without any instance Bug: 162052785 Test: m -j vts Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3 --- boot/1.0/vts/functional/VtsHalBootV1_0TargetTest.cpp | 1 + boot/1.1/vts/functional/VtsHalBootV1_1TargetTest.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'boot') diff --git a/boot/1.0/vts/functional/VtsHalBootV1_0TargetTest.cpp b/boot/1.0/vts/functional/VtsHalBootV1_0TargetTest.cpp index 2f6b23ee5c..e4ad1b9bda 100644 --- a/boot/1.0/vts/functional/VtsHalBootV1_0TargetTest.cpp +++ b/boot/1.0/vts/functional/VtsHalBootV1_0TargetTest.cpp @@ -191,6 +191,7 @@ TEST_P(BootHidlTest, GetSuffix) { } } +GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BootHidlTest); INSTANTIATE_TEST_SUITE_P( PerInstance, BootHidlTest, testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBootControl::descriptor)), diff --git a/boot/1.1/vts/functional/VtsHalBootV1_1TargetTest.cpp b/boot/1.1/vts/functional/VtsHalBootV1_1TargetTest.cpp index 30b965ddbb..c38f25793f 100644 --- a/boot/1.1/vts/functional/VtsHalBootV1_1TargetTest.cpp +++ b/boot/1.1/vts/functional/VtsHalBootV1_1TargetTest.cpp @@ -84,6 +84,7 @@ TEST_P(BootHidlTest, SetSnapshotMergeStatus) { } } +GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(BootHidlTest); INSTANTIATE_TEST_SUITE_P( PerInstance, BootHidlTest, testing::ValuesIn(android::hardware::getAllHalInstanceNames(IBootControl::descriptor)), -- cgit v1.2.3