tests: Add valgrind and Leak Sanitizer suppression files.
[pspp] / tests / valgrind.supp
diff --git a/tests/valgrind.supp b/tests/valgrind.supp
new file mode 100644 (file)
index 0000000..b2423ba
--- /dev/null
@@ -0,0 +1,22 @@
+# libfontconfig uses offsets instead of pointers so valgrind doesn't
+# recognize when blocks are still in use
+{
+    fontconfig
+    Memcheck:Leak
+    ...
+    fun:FcFontRenderPrepare
+}
+{
+    fontconfig2
+    Memcheck:Leak
+    fun:realloc
+    obj:*libfontconfig.so.*
+}
+{
+    fontconfig3
+    Memcheck:Leak
+    fun:malloc
+    obj:*libfontconfig.so.*
+    ...
+    fun:XML_ParseBuffer
+}