Tests: Disable internal test only on Linux
@@ -123,7 +123,7 @@ file (GLOB SCRIPT_TESTS *.sh)
foreach (file ${SCRIPT_TESTS})
get_filename_component (name ${file} NAME)
# The test `testscr_check_kdb_internal_check` might fail on Linux if ASAN is enabled because of problematic code in `stl_tree.h`
- if (NOT (${name} MATCHES "check_kdb_internal_check" AND ENABLE_ASAN))
+ if (NOT (${name} MATCHES "check_kdb_internal_check" AND ENABLE_ASAN AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux"))
add_scripttest(${name})
- endif (NOT (${name} MATCHES "check_kdb_internal_check" AND ENABLE_ASAN))
+ endif (NOT (${name} MATCHES "check_kdb_internal_check" AND ENABLE_ASAN AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux"))
endforeach (file ${SCRIPT_TESTS})
