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() {