From b8cf56ba2ba2c09d473d8d9b43bb66f58bb4ce59 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Fri, 19 Sep 2025 12:57:38 -0700 Subject: [PATCH] Run logging test in debug mode only (#14441) (cherry picked from commit 3f17a936ec1ef3a5106bea5a6aaf9e7c0c8d9cbf) --- runtime/platform/test/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runtime/platform/test/CMakeLists.txt b/runtime/platform/test/CMakeLists.txt index fee7566da3d..dd480ee0953 100644 --- a/runtime/platform/test/CMakeLists.txt +++ b/runtime/platform/test/CMakeLists.txt @@ -33,8 +33,9 @@ et_cxx_test( # # et_cxx_test(platform_death_test SOURCES executor_pal_death_test.cpp) -# No weak function symbols Windows/MSVC, thus PAL intercept is not supported. -if(NOT WIN32) +# No weak function symbols on Windows/MSVC, thus PAL intercept doesn't work. +# Skip logging tests in Release mode. +if(NOT WIN32 AND NOT CMAKE_BUILD_TYPE STREQUAL "Release") et_cxx_test(logging_test SOURCES logging_test.cpp stub_platform.cpp) set_source_files_properties( logging_test.cpp PROPERTIES COMPILE_DEFINITIONS "ET_MIN_LOG_LEVEL=Debug"