summaryrefslogtreecommitdiffstats
path: root/drm
diff options
context:
space:
mode:
authorDan Shi <dshi@google.com>2020-09-08 10:42:38 -0700
committerDan Shi <dshi@google.com>2020-09-11 11:02:25 -0700
commitac9cf4482b368ee9f7a904c11dfa0e15e8bb0995 (patch)
tree227c432327c4ba60a623d1a3551c670d9a3c1d83 /drm
parent82120a8ce43f7e1b7396bc8992f626085ac0fc1a (diff)
downloadplatform_hardware_interfaces-ac9cf4482b368ee9f7a904c11dfa0e15e8bb0995.tar.gz
platform_hardware_interfaces-ac9cf4482b368ee9f7a904c11dfa0e15e8bb0995.tar.bz2
platform_hardware_interfaces-ac9cf4482b368ee9f7a904c11dfa0e15e8bb0995.zip
Suppress gtest error for tests without any instance
Bug: 162052785 Test: m -j vts Change-Id: I627d6790aa08aa9c6e3c5b8bdc533213ee08de21 Merged-In: I627d6790aa08aa9c6e3c5b8bdc533213ee08de21
Diffstat (limited to 'drm')
-rw-r--r--drm/1.0/vts/functional/drm_hal_test_main.cpp3
-rw-r--r--drm/1.3/vts/functional/drm_hal_test_main.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/drm/1.0/vts/functional/drm_hal_test_main.cpp b/drm/1.0/vts/functional/drm_hal_test_main.cpp
index 25571368f4..ccbf51e7c1 100644
--- a/drm/1.0/vts/functional/drm_hal_test_main.cpp
+++ b/drm/1.0/vts/functional/drm_hal_test_main.cpp
@@ -51,14 +51,17 @@ static const std::vector<DrmHalTestParam> kAllInstances = [] {
return allInstanceUuidCombos;
}();
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalVendorFactoryTest);
INSTANTIATE_TEST_CASE_P(DrmHalVendorFactoryTestCases, DrmHalVendorFactoryTest,
testing::ValuesIn(kAllInstances),
drm_vts::PrintParamInstanceToString);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalVendorPluginTest);
INSTANTIATE_TEST_CASE_P(DrmHalVendorPluginTestCases, DrmHalVendorPluginTest,
testing::ValuesIn(kAllInstances),
drm_vts::PrintParamInstanceToString);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalVendorDecryptTest);
INSTANTIATE_TEST_CASE_P(DrmHalVendorDecryptTestCases, DrmHalVendorDecryptTest,
testing::ValuesIn(kAllInstances),
drm_vts::PrintParamInstanceToString);
diff --git a/drm/1.3/vts/functional/drm_hal_test_main.cpp b/drm/1.3/vts/functional/drm_hal_test_main.cpp
index 02b45ea6b9..b8f64c0f6d 100644
--- a/drm/1.3/vts/functional/drm_hal_test_main.cpp
+++ b/drm/1.3/vts/functional/drm_hal_test_main.cpp
@@ -81,12 +81,15 @@ static const std::vector<DrmHalTestParam> kAllInstances = [] {
return allInstanceUuidCombos;
}();
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalVendorFactoryTest);
INSTANTIATE_TEST_CASE_P(PerInstanceUuidV1_0, DrmHalVendorFactoryTest,
testing::ValuesIn(kAllInstances),
drm_vts::PrintParamInstanceToString);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalVendorPluginTest);
INSTANTIATE_TEST_CASE_P(PerInstanceUuidV1_0, DrmHalVendorPluginTest,
testing::ValuesIn(kAllInstances),
drm_vts::PrintParamInstanceToString);
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(DrmHalVendorDecryptTest);
INSTANTIATE_TEST_CASE_P(PerInstanceUuidV1_0, DrmHalVendorDecryptTest,
testing::ValuesIn(kAllInstances),
drm_vts::PrintParamInstanceToString);