From 759a9f5e3a18eb3a0635d5629ff29c722eebdfb4 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 8 Jan 2011 20:09:25 +1030 Subject: [PATCH] ccanlint: fix total score for running examples Don't count examples which didn't compile (expected, as we mangle them in various different ways). --- tools/ccanlint/tests/examples_run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.39.2