diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d69f3f8..b0b867b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -66,7 +66,7 @@ if(ENABLE_CJSON_TEST) message(WARNING "Valgrind couldn't be found.") unset(MEMORYCHECK_COMMAND) else() - set(MEMORYCHECK_COMMAND_OPTIONS --trace-children=yes --leak-check=full --error-exitcode=1) + set(MEMORYCHECK_COMMAND_OPTIONS --suppressions=${CMAKE_SOURCE_DIR}/valgrind.suppressions --trace-children=yes --leak-check=full --error-exitcode=1) endif() endif() diff --git a/valgrind.suppressions b/valgrind.suppressions new file mode 100644 index 0000000..7e5ac8c --- /dev/null +++ b/valgrind.suppressions @@ -0,0 +1,11 @@ +{ + + Memcheck:Cond + fun:index + fun:expand_dynamic_string_token +} +{ + + Memcheck:Cond + fun:expand_dynamic_string_token +}