X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Frun_tests.c;h=f32e0534ff11d1272e3e76c0ceb3498e6e155e8e;hp=0a8434c6e5a35563bfd3eae06f61cbf0e7554c84;hb=03a596908b779bbb4b7c2f739c5e238f8c5d6390;hpb=f1c96e9df6efed3c7a8d43495f1aa0bef6b5cefd;ds=sidebyside 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); } }