]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/run_tests.c
ccanlint: make compile commands return output.
[ccan] / tools / ccanlint / tests / run_tests.c
index 0a8434c6e5a35563bfd3eae06f61cbf0e7554c84..f32e0534ff11d1272e3e76c0ceb3498e6e155e8e 100644 (file)
@@ -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);
                }
        }