only check for meminfo[2] on platforms we know to be supported

This commit is contained in:
Axel Kohlmeyer
2021-09-08 23:02:56 -04:00
parent 6bad470dd5
commit 8c3924352d

View File

@ -65,7 +65,7 @@ TEST_F(LibraryProperties, memory_usage)
#if defined(__linux__) || defined(_WIN32)
EXPECT_GE(meminfo[1], 0.0);
#endif
#if !defined(__INTEL_LLVM_COMPILER)
#if (defined(__linux__) || defined(__APPLE__) || defined(_WIN32)) && !defined(__INTEL_LLVM_COMPILER)
EXPECT_GT(meminfo[2], 0.0);
#endif
};