X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fhas_examples.c;h=a1d54c480ffecdfcd80150df1bfff838ba39eb28;hb=016a19d260cd7f4afeb5b2b2cc28c8bbed1cd170;hp=1e4f65c3396cd825b5a619d2608b6b5bd6ce05d9;hpb=f9423c171395571f9880286190d9cf63da147668;p=ccan-lca-2011.git diff --git a/tools/ccanlint/tests/has_examples.c b/tools/ccanlint/tests/has_examples.c index 1e4f65c..a1d54c4 100644 --- a/tools/ccanlint/tests/has_examples.c +++ b/tools/ccanlint/tests/has_examples.c @@ -113,6 +113,7 @@ struct ccanlint has_examples = { .key = "examples_exist", .name = "_info and main header file have Example: sections", .check = extract_examples, + .needs = "info_exists" }; -REGISTER_TEST(has_examples, &has_info, NULL); +REGISTER_TEST(has_examples);