]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/compulsory_tests/has_info.c
ccanlint: timeout, and implement -t option for quicker tests.
[ccan] / tools / ccanlint / compulsory_tests / has_info.c
index ed2d4c813c0c1b7d4a29f9b7de6b79aec59bb043..97cad5940a25374964ce24276a7c4f476122567c 100644 (file)
@@ -11,7 +11,7 @@
 #include <string.h>
 #include <ccan/noerr/noerr.h>
 
-static void *check_has_info(struct manifest *m)
+static void *check_has_info(struct manifest *m, unsigned int *timeleft)
 {
        if (m->info_file)
                return NULL;
@@ -71,8 +71,11 @@ static void create_info_template(struct manifest *m, void *check_result)
 }
 
 struct ccanlint has_info = {
-       .name = "Has _info file",
+       .key = "info",
+       .name = "Module has _info file",
        .check = check_has_info,
        .describe = describe_has_info,
        .handle = create_info_template,
 };
+
+REGISTER_TEST(has_info, NULL);