summaryrefslogtreecommitdiffstats
path: root/tests/core/os/test_os.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core/os/test_os.h')
-rw-r--r--tests/core/os/test_os.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/core/os/test_os.h b/tests/core/os/test_os.h
index 6ee0ff82e7..1e2f5e222b 100644
--- a/tests/core/os/test_os.h
+++ b/tests/core/os/test_os.h
@@ -163,12 +163,14 @@ TEST_CASE("[OS] Processor count and memory information") {
CHECK_MESSAGE(
OS::get_singleton()->get_processor_count() >= 1,
"The returned processor count should be greater than zero.");
+#ifdef DEBUG_ENABLED
CHECK_MESSAGE(
OS::get_singleton()->get_static_memory_usage() >= 1,
"The returned static memory usage should be greater than zero.");
CHECK_MESSAGE(
OS::get_singleton()->get_static_memory_peak_usage() >= 1,
"The returned static memory peak usage should be greater than zero.");
+#endif // DEBUG_ENABLED
}
TEST_CASE("[OS] Execute") {