X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Fccanlint.c;h=3b7dceb23ababae98ec458d29934a49009d79523;hb=a8e0cfb1b02bd89850540f60232fc52fb0a11500;hp=17c9f45957ced713dc39b2e36f75cbcb04903865;hpb=b41f7776fe5fced071019bda5ed1c045ab2e245b;p=ccan diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index 17c9f459..3b7dceb2 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -150,7 +150,7 @@ static bool run_test(struct ccanlint *i, else this_score = 0; - bad = (this_score == 0); + bad = (this_score == 0 && i->total_score != 0); good = (this_score >= i->total_score); if (verbose || (bad && !quiet)) { @@ -237,10 +237,10 @@ static void init_tests(void) struct btree *keys, *names; #undef REGISTER_TEST -#define REGISTER_TEST(name, ...) register_test(&normal_tests, &name, __VA_ARGS__) +#define REGISTER_TEST(name, ...) register_test(&normal_tests, &name, __VA_ARGS__, NULL) #include "generated-normal-tests" #undef REGISTER_TEST -#define REGISTER_TEST(name, ...) register_test(&compulsory_tests, &name, __VA_ARGS__) +#define REGISTER_TEST(name, ...) register_test(&compulsory_tests, &name, __VA_ARGS__, NULL) #include "generated-compulsory-tests" /* Self-consistency check: make sure no two tests @@ -413,6 +413,8 @@ int main(int argc, char *argv[]) if (optind < argc) usage(argv[0]); + if (verbose >= 2) + compile_verbose = true; if (verbose >= 3) tools_verbose = true;