projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0686bf
)
Fix valgrind running with debugger.
author
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 1 Feb 2010 23:02:55 +0000
(09:32 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 1 Feb 2010 23:02:55 +0000
(09:32 +1030)
tools/ccanlint/tests/run_tests_valgrind.c
patch
|
blob
|
history
diff --git
a/tools/ccanlint/tests/run_tests_valgrind.c
b/tools/ccanlint/tests/run_tests_valgrind.c
index b89541f331475c510dd5a464b8826d418ce74003..f4ab8f528df13aad2a78a4bd11613e497b2a5985 100644
(file)
--- 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 = {