Browse Source

Fix crash on compulsory test fail.

Rusty Russell 17 years ago
parent
commit
d4aa9aa33a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tools/ccanlint/ccanlint.c

+ 3 - 2
tools/ccanlint/ccanlint.c

@@ -149,8 +149,9 @@ int main(int argc, char *argv[])
 	if (verbose)
 		printf("Compulsory tests:\n");
 	list_for_each(&tests, i, list)
-		if (!i->total_score && !run_test(i, summary, NULL, NULL, m))
-			exit(1);
+		if (!i->total_score)
+			if (!run_test(i, summary, &score, &total_score, m))
+				exit(1);
 
 	if (verbose)
 		printf("\nNormal tests:\n");