Tests: Disable Shell Recorder tests on Linux/ASAN
@@ -15,12 +15,10 @@ function (add_plugin_shell_test PLUGIN)
endfunction ()
add_s_test (tutorial_cascading "${CMAKE_SOURCE_DIR}/doc/tutorials/cascading.md")
-add_s_test (tutorial_validation "${CMAKE_SOURCE_DIR}/doc/tutorials/validation.md")
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 (base64)
add_plugin_shell_test (blockresolver)
add_plugin_shell_test (cachefilter)
add_plugin_shell_test (camel)
@@ -31,15 +29,24 @@ add_plugin_shell_test (ini)
add_plugin_shell_test (ipaddr)
add_plugin_shell_test (line)
add_plugin_shell_test (mathcheck)
-add_plugin_shell_test (mini)
add_plugin_shell_test (mozprefs)
add_plugin_shell_test (multifile)
add_plugin_shell_test (range)
-add_plugin_shell_test (tcl)
add_plugin_shell_test (type)
add_plugin_shell_test (xerces)
add_plugin_shell_test (yamlcpp)
add_plugin_shell_test (yajl)
+# The tests below might fail on Linux if ASAN is enabled because of problematic code in `stl_tree.h`
+# The cause of this seems to be a bug in old versions of `libstdc++`:
+# http://lists.llvm.org/pipermail/cfe-dev/2013-August/031194.html
+set (ASAN_LINUX ENABLE_ASAN AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+if (NOT (ASAN_LINUX AND CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.6))
+ add_s_test (tutorial_validation "${CMAKE_SOURCE_DIR}/doc/tutorials/validation.md")
+ add_plugin_shell_test (base64)
+ add_plugin_shell_test (mini)
+ add_plugin_shell_test (tcl)
+endif (NOT (ASAN_LINUX AND CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.6))
+
# Only works with super user privileges, since it writes to `/etc/hosts`:
# add_s_test (tutorial_mount "${CMAKE_SOURCE_DIR}/doc/tutorials/mount.md")
