diff options
author | Roshan Pius <rpius@google.com> | 2022-06-10 19:57:41 +0000 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2022-06-10 20:03:18 +0000 |
commit | 3ba0e635e1e04c05a0142f4f02bb423c71acae17 (patch) | |
tree | 1c8d0b774392d6f08360109eaf2369e22529005c /uwb | |
parent | f828bd264ce333a35dad7a9e0a2eb1558ab88fd8 (diff) |
uwb(vts): Close HAL at end of each test
Bug: 235558748
Test: atest VtsHalUwbTargetTest
Change-Id: I5361baab1f9204052e0f625b3c17242fbfe66190
Diffstat (limited to 'uwb')
-rw-r--r-- | uwb/aidl/vts/VtsHalUwbTargetTest.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uwb/aidl/vts/VtsHalUwbTargetTest.cpp b/uwb/aidl/vts/VtsHalUwbTargetTest.cpp index edd8dd6608..81d26ba06b 100644 --- a/uwb/aidl/vts/VtsHalUwbTargetTest.cpp +++ b/uwb/aidl/vts/VtsHalUwbTargetTest.cpp @@ -68,6 +68,11 @@ class UwbAidl : public testing::TestWithParam<std::string> { iuwb_ = IUwb::fromBinder(SpAIBinder(AServiceManager_waitForService(GetParam().c_str()))); ASSERT_NE(iuwb_, nullptr); } + virtual void TearDown() override { + // Trigger HAL close at end of each test. + const auto iuwb_chip = getAnyChip(); + iuwb_chip->close(); + } std::shared_ptr<IUwb> iuwb_; // TODO (b/197638976): We pick the first chip here. Need to fix this |