From 94dd778b95b5b6b8384a633debba63944a886582 Mon Sep 17 00:00:00 2001 From: Oksana Salyk Date: Fri, 19 Jul 2024 11:37:41 +0200 Subject: [PATCH] guess test case --- .../utils/inject_manager/inject_manager.cc | 24 +++++++++---------- .../ras/utils/inject_manager/inject_manager.h | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/tests/ras/utils/inject_manager/inject_manager.cc b/src/tests/ras/utils/inject_manager/inject_manager.cc index 86dafcd..3fbb60d 100644 --- a/src/tests/ras/utils/inject_manager/inject_manager.cc +++ b/src/tests/ras/utils/inject_manager/inject_manager.cc @@ -145,18 +145,18 @@ InjectManager::InjectManager(std::string test_dir, std::string policy) { test_dir_ = test_dir; } -bool InjectManager::IsLastShutdownUnsafe( - const std::vector &dimm_namespaces) const { - std::function compare = [](int rec, int cur) -> bool { - return cur > rec; - }; - - if (!CheckUSCDiff(dimm_namespaces, compare)) { - std::cerr << "Unexpected safe shutdown of NVDIMM" << std::endl; - return false; - } - return true; -} +// bool InjectManager::IsLastShutdownUnsafe( +// const std::vector &dimm_namespaces) const { +// std::function compare = [](int rec, int cur) -> bool { +// return cur > rec; +// }; + +// if (!CheckUSCDiff(dimm_namespaces, compare)) { +// std::cerr << "Unexpected safe shutdown of NVDIMM" << std::endl; +// return false; +// } +// return true; +// } bool InjectManager::IsLastShutdownSafe( const std::vector &dimm_namespaces) const { diff --git a/src/tests/ras/utils/inject_manager/inject_manager.h b/src/tests/ras/utils/inject_manager/inject_manager.h index 820f5ae..c9def64 100644 --- a/src/tests/ras/utils/inject_manager/inject_manager.h +++ b/src/tests/ras/utils/inject_manager/inject_manager.h @@ -48,8 +48,8 @@ class InjectManager { InjectManager(std::string test_dir, std::string policy); - bool IsLastShutdownUnsafe( - const std::vector &dimm_namespaces) const; +// bool IsLastShutdownUnsafe( +// const std::vector &dimm_namespaces) const; bool IsLastShutdownSafe( const std::vector &dimm_namespaces) const; int RecordUSC(const std::vector &dimm_namespaces) const;