Skip to content

Commit 3f17a93

Browse files
authored
Run logging test in debug mode only (#14441)
1 parent 641e737 commit 3f17a93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

runtime/platform/test/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ et_cxx_test(
3333
#
3434
# et_cxx_test(platform_death_test SOURCES executor_pal_death_test.cpp)
3535

36-
# No weak function symbols Windows/MSVC, thus PAL intercept is not supported.
37-
if(NOT WIN32)
36+
# No weak function symbols on Windows/MSVC, thus PAL intercept doesn't work.
37+
# Skip logging tests in Release mode.
38+
if(NOT WIN32 AND NOT CMAKE_BUILD_TYPE STREQUAL "Release")
3839
et_cxx_test(logging_test SOURCES logging_test.cpp stub_platform.cpp)
3940
set_source_files_properties(
4041
logging_test.cpp PROPERTIES COMPILE_DEFINITIONS "ET_MIN_LOG_LEVEL=Debug"

0 commit comments

Comments
 (0)