diff options
author | Devin Moore <devinmoore@google.com> | 2023-11-21 21:49:43 +0000 |
---|---|---|
committer | Devin Moore <devinmoore@google.com> | 2023-11-22 17:18:28 +0000 |
commit | 79dd1fff93f62580f9215fd1a6f13e09ab41836b (patch) | |
tree | be5566eb7ccc5cc7821e7ee2332f36faa3546379 | |
parent | 7734a93f3d4bb91a4604c102ff73a3973cb51bf4 (diff) | |
download | libhidl-79dd1fff93f62580f9215fd1a6f13e09ab41836b.tar.gz |
libhidl_test: stop expecting HIDL HALs
There will no longer be HIDL HALs on new devices, so skip the tests in
that case.
Test: atest libhild_test vts_ibase_test VtsHidlAllocatorV1_0TargetTest
Bug: 218588089
Change-Id: I10047a902d91b530104add94388358d63a5fdf76
-rw-r--r-- | transport/allocator/1.0/vts/functional/VtsHidlAllocatorV1_0TargetTest.cpp | 1 | ||||
-rw-r--r-- | transport/base/1.0/vts/functional/vts_ibase_test.cpp | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/transport/allocator/1.0/vts/functional/VtsHidlAllocatorV1_0TargetTest.cpp b/transport/allocator/1.0/vts/functional/VtsHidlAllocatorV1_0TargetTest.cpp index 340ec0c..b824a3e 100644 --- a/transport/allocator/1.0/vts/functional/VtsHidlAllocatorV1_0TargetTest.cpp +++ b/transport/allocator/1.0/vts/functional/VtsHidlAllocatorV1_0TargetTest.cpp @@ -122,6 +122,7 @@ TEST_P(AllocatorHidlTest, TestCommit) { } } +GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(AllocatorHidlTest); INSTANTIATE_TEST_SUITE_P( PerInstance, AllocatorHidlTest, testing::ValuesIn(android::hardware::getAllHalInstanceNames(IAllocator::descriptor)), diff --git a/transport/base/1.0/vts/functional/vts_ibase_test.cpp b/transport/base/1.0/vts/functional/vts_ibase_test.cpp index 96125d0..f8f8b33 100644 --- a/transport/base/1.0/vts/functional/vts_ibase_test.cpp +++ b/transport/base/1.0/vts/functional/vts_ibase_test.cpp @@ -155,7 +155,9 @@ class VtsHalBaseV1_0TargetTest : public ::testing::Test { } })); - ASSERT_FALSE(all_hals_.empty()); // sanity + if (all_hals_.empty()) { + GTEST_SKIP() << "No HIDL HAls on this device."; + } } void EachHal(const std::function<void(const Hal&)>& check) { |