From: Rusty Russell Date: Sat, 8 Jan 2011 09:39:25 +0000 (+1030) Subject: ccanlint: fix total score for running examples X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=759a9f5e3a18eb3a0635d5629ff29c722eebdfb4 ccanlint: fix total score for running examples Don't count examples which didn't compile (expected, as we mangle them in various different ways). --- diff --git a/tools/ccanlint/tests/examples_run.c b/tools/ccanlint/tests/examples_run.c index 077ea248..6418d833 100644 --- a/tools/ccanlint/tests/examples_run.c +++ b/tools/ccanlint/tests/examples_run.c @@ -248,10 +248,10 @@ static void run_examples(struct manifest *m, bool keep, expect = find_expect(i, lines, &input, &exact, &linenum)) { char *err; - score->total++; if (i->compiled == NULL) continue; + score->total++; output = unexpected(i, input, expect, exact); if (!output) { score->score++;