Commit 759a9f5e authored by Rusty Russell's avatar Rusty Russell

ccanlint: fix total score for running examples

Don't count examples which didn't compile (expected, as we mangle them in
various different ways).
parent 30d5682c
......@@ -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++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment