X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Frun_tests.c;h=f32e0534ff11d1272e3e76c0ceb3498e6e155e8e;hp=0a8434c6e5a35563bfd3eae06f61cbf0e7554c84;hb=0b26111530a6eb35420b7075b2cd58390cb2af14;hpb=7a163ea2dcafc056fdafc8c71ef011e2bfdbeb65 diff --git a/tools/ccanlint/tests/run_tests.c b/tools/ccanlint/tests/run_tests.c index 0a8434c6..f32e0534 100644 --- a/tools/ccanlint/tests/run_tests.c +++ b/tools/ccanlint/tests/run_tests.c @@ -35,11 +35,11 @@ static void do_run_tests(struct manifest *m, foreach_ptr(list, &m->run_tests, &m->api_tests) { list_for_each(list, i, list) { score->total++; - cmdout = run_command(m, timeleft, i->compiled); - if (cmdout) - score_file_error(score, i, 0, cmdout); - else + if (run_command(m, timeleft, &cmdout, "%s", + i->compiled)) score->score++; + else + score_file_error(score, i, 0, cmdout); } }