MSR: Disable tests on Linux if ASAN is enabled
@@ -20,7 +20,6 @@ add_s_test (kdb-complete "${CMAKE_SOURCE_DIR}/doc/help/kdb-complete.md")
add_s_test (kdb-global-umount "${CMAKE_SOURCE_DIR}/doc/help/kdb-global-umount.md")
add_s_test (kdb-ls "${CMAKE_SOURCE_DIR}/doc/help/kdb-ls.md")
-add_plugin_shell_test (blockresolver)
add_plugin_shell_test (camel)
add_plugin_shell_test (conditionals)
add_plugin_shell_test (enum)
@@ -28,13 +27,18 @@ add_plugin_shell_test (ini)
add_plugin_shell_test (hosts)
add_plugin_shell_test (line)
add_plugin_shell_test (mathcheck)
-add_plugin_shell_test (multifile)
-add_plugin_shell_test (mini)
add_plugin_shell_test (mozprefs)
add_plugin_shell_test (xerces)
add_plugin_shell_test (range)
-add_plugin_shell_test (tcl)
add_plugin_shell_test (type)
+# The tests below might fail on Linux if ASAN is enabled because of problematic code in `stl_tree.h`
+if (NOT (${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND ENABLE_ASAN))
+ add_plugin_shell_test (blockresolver)
+ add_plugin_shell_test (multifile)
+ add_plugin_shell_test (mini)
+ add_plugin_shell_test (tcl)
+endif (NOT (${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND ENABLE_ASAN))
+
# Only works with super user privileges, since it writes to `/etc/hosts`:
# add_s_test (tutorial_mount "${CMAKE_SOURCE_DIR}/doc/tutorials/mount.md")
