From e447be50313c043ed4ffad334cce3954a922812a Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 13 Dec 2010 18:45:24 +1030 Subject: [PATCH] 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. --- tools/ccanlint/tests/run_tests_valgrind.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ccanlint/tests/run_tests_valgrind.c b/tools/ccanlint/tests/run_tests_valgrind.c index 21b8660a..b5e4eff8 100644 --- a/tools/ccanlint/tests/run_tests_valgrind.c +++ b/tools/ccanlint/tests/run_tests_valgrind.c @@ -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(); -- 2.39.2