#include <ccan/str/str.h>
#include <ccan/take/take.h>
#include <ccan/foreach/foreach.h>
+#include <ccan/tal/grab_file/grab_file.h>
#include "tests_pass.h"
#include <sys/types.h>
#include <sys/stat.h>
continue;
}
- output = tal_grab_file(i, i->valgrind_log, NULL);
+ output = grab_file(i, i->valgrind_log);
/* No valgrind errors? */
if (!output || output[0] == '\0') {
err = NULL;
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();
}