Commit e447be50 authored by Rusty Russell's avatar Rusty Russell

ccanlint: use valgrind options when debugging too

If they specify valgrind options in their _info, we should use them when
running with --db-attach=yes, too.
parent 070a8e6a
......@@ -171,7 +171,9 @@ 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 = talloc_asprintf(m, "valgrind --db-attach=yes %s",
command = talloc_asprintf(m, "valgrind --db-attach=yes%s %s",
run_tests_vg.options ?
run_tests_vg.options : "",
first->file->compiled);
if (system(command))
doesnt_matter();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment