Commit d4aa9aa3 authored by Rusty Russell's avatar Rusty Russell

Fix crash on compulsory test fail.

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