Browse Source

ccanlint: fix total score for running examples

Don't count examples which didn't compile (expected, as we mangle them in
various different ways).
Rusty Russell 15 years ago
parent
commit
759a9f5e3a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/ccanlint/tests/examples_run.c

+ 1 - 1
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,
 				     expect = find_expect(i, lines, &input,
 							  &exact, &linenum)) {
 							  &exact, &linenum)) {
 				char *err;
 				char *err;
-				score->total++;
 				if (i->compiled == NULL)
 				if (i->compiled == NULL)
 					continue;
 					continue;
 
 
+				score->total++;
 				output = unexpected(i, input, expect, exact);
 				output = unexpected(i, input, expect, exact);
 				if (!output) {
 				if (!output) {
 					score->score++;
 					score->score++;