martinzink commented on a change in pull request #1066:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1066#discussion_r630440856
##########
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:
I wanted these tests to be able to print out these hardware/platform
specific informations so it can be verified manually on various platforms if
needed without bothoring with log files.
--
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]