X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_compile.c;h=48b8c0cfa32aaeff5bf3d0f2df4adbaeb9d5f452;hp=9e6d5dc7c52ea78055484424da9757a83e6fe8da;hb=ce6eef4132acad78ae04a9e7c388ef932fb6411d;hpb=37c06f735fe985f19f6fadf47d03b15fa45b5317 diff --git a/tools/ccanlint/tests/tests_compile.c b/tools/ccanlint/tests/tests_compile.c index 9e6d5dc7..48b8c0cf 100644 --- a/tools/ccanlint/tests/tests_compile.c +++ b/tools/ccanlint/tests/tests_compile.c @@ -131,11 +131,11 @@ static void compile_tests(struct manifest *m, bool keep, "Compiled successfully with -DFAIL?"); return; } + score->total++; } score->pass = true; - score->total = 2; - score->score = 1 + !warnings; + score->score = score->total - warnings; } static void do_compile_tests(struct manifest *m, @@ -167,7 +167,7 @@ static void do_compile_tests_without_features(struct manifest *m, unsigned int *timeleft, struct score *score) { - return compile_tests(m, keep, score, "-I. "); + compile_tests(m, keep, score, "-I. "); } struct ccanlint tests_compile_without_features = {