From c68c0bcbc7a206781d41e997b6ce9ad45a08e4b2 Mon Sep 17 00:00:00 2001 From: Jie Yao Date: Sun, 11 Aug 2024 22:25:51 -0700 Subject: [PATCH] fix AddressSanitizer check --- src/tests/test_common/homestore_test_common.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tests/test_common/homestore_test_common.hpp b/src/tests/test_common/homestore_test_common.hpp index 7a25c9b12..7aa90b94a 100644 --- a/src/tests/test_common/homestore_test_common.hpp +++ b/src/tests/test_common/homestore_test_common.hpp @@ -190,7 +190,10 @@ class HSTestHelper { homestore::HomeStore::reset_instance(); iomanager.stop(); - if (cleanup) { remove_files(m_generated_devs); } + if (cleanup) { + remove_files(m_generated_devs); + m_generated_devs.clear(); + } } void change_start_cb(hs_before_services_starting_cb_t cb) { m_token.cb() = cb; }