From 78ef7e85c97bc2a655c43fedffcc25ebeacba2ae Mon Sep 17 00:00:00 2001 From: Vitaliy Urusovskij Date: Mon, 2 Oct 2023 14:01:18 +0400 Subject: [PATCH] Return missed `return pmc;` (#20118) --- tests/memory_tests/src/memory_tests_helper/memory_counter.cpp | 1 + tests/stress_tests/common/utils.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/memory_tests/src/memory_tests_helper/memory_counter.cpp b/tests/memory_tests/src/memory_tests_helper/memory_counter.cpp index b0e47f00488..a8e03e9b1dd 100644 --- a/tests/memory_tests/src/memory_tests_helper/memory_counter.cpp +++ b/tests/memory_tests/src/memory_tests_helper/memory_counter.cpp @@ -29,6 +29,7 @@ namespace MemoryTest { pmc.cb = sizeof(PROCESS_MEMORY_COUNTERS); if (!GetProcessMemoryInfo(GetCurrentProcess(), &pmc, pmc.cb)) throw std::runtime_error("Can't get system memory values"); + return pmc; } size_t getVmSizeInKB() { diff --git a/tests/stress_tests/common/utils.cpp b/tests/stress_tests/common/utils.cpp index 2dbbbb05895..0f3bcbcdecb 100644 --- a/tests/stress_tests/common/utils.cpp +++ b/tests/stress_tests/common/utils.cpp @@ -39,6 +39,7 @@ static PROCESS_MEMORY_COUNTERS getMemoryInfo() { pmc.cb = sizeof(PROCESS_MEMORY_COUNTERS); if (!GetProcessMemoryInfo(GetCurrentProcess(), &pmc, pmc.cb)) throw std::runtime_error("Can't get system memory values"); + return pmc; } size_t getVmSizeInKB() {