From 3871832e77a273981415d07734556fd5844ad393 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 2 Feb 2010 09:32:55 +1030 Subject: [PATCH] Fix valgrind running with debugger. --- tools/ccanlint/tests/run_tests_valgrind.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/ccanlint/tests/run_tests_valgrind.c b/tools/ccanlint/tests/run_tests_valgrind.c index b89541f3..f4ab8f52 100644 --- a/tools/ccanlint/tests/run_tests_valgrind.c +++ b/tools/ccanlint/tests/run_tests_valgrind.c @@ -99,12 +99,15 @@ static void run_under_debugger_vg(struct manifest *m, void *check_result) { struct list_head *list = check_result; struct run_tests_result *first; + char *command; if (!ask("Should I run the first failing test under the debugger?")) return; first = list_top(list, struct run_tests_result, list); - run_command(m, "valgrind --db-attach=yes %s", first->file->compiled); + command = talloc_asprintf(m, "valgrind --db-attach=yes %s", + first->file->compiled); + system(command); } struct ccanlint run_tests_vg = { -- 2.39.2