X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_pass_without_features.c;fp=tools%2Fccanlint%2Ftests%2Ftests_pass_without_features.c;h=999c4eda45663dace4fa759dc891e7a5f8ee3c94;hp=cbb23baeae0cff8d8b45127adfe13fa13eabfe7d;hb=dc8042b42500f79f613b1197df6cdf739615a89f;hpb=aabf300e324f7da5134d7ad45afba11225045c24 diff --git a/tools/ccanlint/tests/tests_pass_without_features.c b/tools/ccanlint/tests/tests_pass_without_features.c index cbb23bae..999c4eda 100644 --- a/tools/ccanlint/tests/tests_pass_without_features.c +++ b/tools/ccanlint/tests/tests_pass_without_features.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -55,9 +54,8 @@ static void run_under_debugger(struct manifest *m, struct score *score) if (!ask("Should I run the first failing test under the debugger?")) return; - command = talloc_asprintf(m, "gdb -ex 'break tap.c:139' -ex 'run' %s", - first->file->compiled - [COMPILE_NOFEAT]); + command = tal_fmt(m, "gdb -ex 'break tap.c:139' -ex 'run' %s", + first->file->compiled[COMPILE_NOFEAT]); if (system(command)) doesnt_matter(); }