tools/ccanlint: add global .valgrind_suppressions file.
[ccan] / tools / ccanlint / tests / tests_pass_valgrind.c
index 5b4250bc1c0596537b7fc80bcea9964eafb728bf..2f4df18b47e4382a3ea8d7032f78411fece3b536 100644 (file)
@@ -251,10 +251,10 @@ static void run_under_debugger_vg(struct manifest *m, struct score *score)
                return;
 
        first = list_top(&score->per_file_errors, struct file_error, list);
-       command = tal_fmt(m, "valgrind --leak-check=full --db-attach=yes%s %s",
+       command = tal_fmt(m, "valgrind --leak-check=full --db-attach=yes%s %s %s",
                          concat(score, per_file_options(&tests_pass_valgrind,
                                                         first->file)),
-                         first->file->compiled[COMPILE_NORMAL]);
+                         valgrind_suppress, first->file->compiled[COMPILE_NORMAL]);
        if (system(command))
                doesnt_matter();
 }