X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Fcompulsory_tests%2Fhas_tests.c;h=04dd4495bb33e2207f8402ecb4ff3bf1ecff0fbe;hp=46998d58cb0bb40148f050aa0c64c0bc6413e7f3;hb=fb4c4c3ddc24772f71a64ec02d2c9ddaeb6e9f6b;hpb=747a69435d9f83c0968d9689c4951bc0233ffc5e diff --git a/tools/ccanlint/compulsory_tests/has_tests.c b/tools/ccanlint/compulsory_tests/has_tests.c index 46998d58..04dd4495 100644 --- a/tools/ccanlint/compulsory_tests/has_tests.c +++ b/tools/ccanlint/compulsory_tests/has_tests.c @@ -12,7 +12,9 @@ static char test_is_not_dir[] = "test is not a directory"; -static void *check_has_tests(struct manifest *m) +static void *check_has_tests(struct manifest *m, + bool keep, + unsigned int *timeleft) { struct stat st; char *test_dir = talloc_asprintf(m, "%s/test", m->dir); @@ -124,7 +126,8 @@ static void handle_no_tests(struct manifest *m, void *check_result) } struct ccanlint has_tests = { - .name = "Has tests", + .key = "has-tests", + .name = "Module has tests", .check = check_has_tests, .describe = describe_has_tests, .handle = handle_no_tests,