X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fexamples_exist.c;fp=tools%2Fccanlint%2Ftests%2Fexamples_exist.c;h=847010af5f43ff0df075f583bcdfaf9bd5a926ce;hp=085f673a7e5ed506a6abe819911ef8e21af5a444;hb=678cd10db6d6b81d97f3b98ea0a54657141632ad;hpb=7ce5cb9dbdff5aef2a0218539adc6e2e49c659cb diff --git a/tools/ccanlint/tests/examples_exist.c b/tools/ccanlint/tests/examples_exist.c index 085f673a..847010af 100644 --- a/tools/ccanlint/tests/examples_exist.c +++ b/tools/ccanlint/tests/examples_exist.c @@ -94,9 +94,10 @@ static void extract_examples(struct manifest *m, } } + /* We don't fail ccanlint for this. */ + score->pass = true; if (have_info_example && have_header_example) { score->score = score->total; - score->pass = true; return; } @@ -106,8 +107,6 @@ static void extract_examples(struct manifest *m, score_file_error(score, mainh, 0, "No Example: section"); score->score = have_info_example + have_header_example; - /* We pass if we find any example. */ - score->pass = score->score != 0; } struct ccanlint examples_exist = {