tests CHANGE add ldopen()'s still reachable valgrind supression
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 00d5b3f..ddb5eec 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -17,7 +17,7 @@
find_program(valgrind_FOUND valgrind)
if (valgrind_FOUND)
foreach (test_name IN LISTS tests)
- add_test(${test_name}_valgrind valgrind --leak-check=full --error-exitcode=1 ${CMAKE_BINARY_DIR}/tests/${test_name})
+ add_test(${test_name}_valgrind valgrind --leak-check=full --show-leak-kinds=all --error-exitcode=1 --suppressions=${PROJECT_SOURCE_DIR}/tests/ld.supp ${CMAKE_BINARY_DIR}/tests/${test_name})
endforeach()
else (valgrind_FOUND)
Message("-- valgrind executable not found! Disabling memory leaks tests")
diff --git a/tests/ld.supp b/tests/ld.supp
new file mode 100644
index 0000000..1204fda
--- /dev/null
+++ b/tests/ld.supp
@@ -0,0 +1,10 @@
+{
+ ld
+ Memcheck:Leak
+ match-leak-kinds: reachable
+ fun:calloc
+ fun:_dlerror_run
+ fun:dlopen@@GLIBC_2.2.5
+ fun:lyext_load_plugins
+ fun:ly_ctx_new
+}