adamdebreceni commented on a change in pull request #1066:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1066#discussion_r629351522



##########
File path: libminifi/test/unit/MemoryUsageTest.cpp
##########
@@ -47,3 +47,16 @@ TEST_CASE("Test new and legacy total system memory query 
equivalency") {
   REQUIRE(GetTotalMemoryLegacy() == 
utils::OsUtils::getSystemTotalPhysicalMemory());
 }
 #endif
+
+
+#ifdef WIN32
+TEST_CASE("Test Paging file size", "[testpagingfile]") {
+  constexpr bool cout_enabled = true;
+  const auto total_paging_file_size = utils::OsUtils::getTotalPagingFileSize();
+
+  if (cout_enabled) {
+    std::cout << "Total Paging file size: " << total_paging_file_size << " 
bytes" << std::endl;

Review comment:
       why not use the logging framework?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to