X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fhas_tests.c;h=0e90d16ff737a717765727f27c7a8ddb68c6170e;hb=016a19d260cd7f4afeb5b2b2cc28c8bbed1cd170;hp=36adee60998a0c8477c415875620324e34603bd0;hpb=f9423c171395571f9880286190d9cf63da147668;p=ccan-lca-2011.git diff --git a/tools/ccanlint/tests/has_tests.c b/tools/ccanlint/tests/has_tests.c index 36adee6..0e90d16 100644 --- a/tools/ccanlint/tests/has_tests.c +++ b/tools/ccanlint/tests/has_tests.c @@ -10,6 +10,8 @@ #include #include +extern struct ccanlint has_tests; + static void handle_no_tests(struct manifest *m, struct score *score) { FILE *run; @@ -128,6 +130,7 @@ struct ccanlint has_tests = { .key = "tests_exist", .name = "Module has test directory with tests in it", .check = check_has_tests, + .needs = "" }; -REGISTER_TEST(has_tests, NULL); +REGISTER_TEST(has_tests);