Browse Source

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.
Rusty Russell 15 years ago
parent
commit
e447be5031
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tools/ccanlint/tests/run_tests_valgrind.c

+ 3 - 1
tools/ccanlint/tests/run_tests_valgrind.c

@@ -171,7 +171,9 @@ static void run_under_debugger_vg(struct manifest *m, struct score *score)
 		return;
 		return;
 
 
 	first = list_top(&score->per_file_errors, struct file_error, list);
 	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);
 				  first->file->compiled);
 	if (system(command))
 	if (system(command))
 		doesnt_matter();
 		doesnt_matter();