Browse Source

ccanlint: fix score for info_summary_single_line

My refactoring introduced a bug: we need to set score=1 for the success case.
Rusty Russell 15 years ago
parent
commit
d50528d6c5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tools/ccanlint/tests/info_summary_single_line.c

+ 2 - 0
tools/ccanlint/tests/info_summary_single_line.c

@@ -13,6 +13,8 @@ static void check_info_summary_single_line(struct manifest *m,
 	struct doc_section *d;
 
 	score->pass = true;
+	score->score = 1;
+
 	list_for_each(infodocs, d, list) {
 		const char *after;